Remove some globals to maybe save some memory.