Add base class for controllers.