Does not need to be a $scope function.