Move global functions to Globals.n