Global variables now work