Added construction code for the controllers.