Added the main controller.