Declare all variables at the top of function scope.