Removed the use of global variables