Controller class.