Adding the service.id and service.pid of references