Move variable declarations around for clarity.