Removed Global Variables in functions