Modified function syntax (not linked to $scope).