Add a method to the controller