Make all top-level global variables local