Removed global variables.