Added function unregisterGlobals()