Adds service class.