Move variable declarations to the top.