Move variables to the top of the start script
This tidies things up, making the script more readable and helping
to save a bit of space.