Implementing update function for service types.