Adding main controller.