Added API methods to controller