Declare all variables at the top of the function scope.