Now convert ALL globals to VAR .. the last one isn't repeated now