Added main controller.