Made changes to Local and Global Variables.