Seems a bit pointless to start a new scope here. Just put the definitions at the start?