Code Changes, making variables global variables