Add a base class for services.