Added missing methods and classes for wiring the main controller.