Please define variables where they are first used instead of using the C-ism of defining them at the start. :)