Removed all the global variables.