Why do we need this method inside the controller scope?