This should be called in the controller's scope, not here.