... set globals ... ... do_stuff; ... ... use modified globals