Removed all global variables