Adds service definition.