Method wasn't seeing global var