Rework globals.