Move variables into global scope