Added rest controller.