Add main controller.