Allocate the local variables at the start of the function, our style
is to not usually allocate at other than a function scope.