Added controller to manage States.