Changed function scope.