Move variables to top