Removing global variables.