Initial removal of crappy global variables.