Made setupGlobals() return the created context and use it instead of either global...