Changing local to global variable.