Move stuff from local to global