Main controller and phase controllers added