Added the main controller