Added functionality to the controller API