Added methods to controller.