Updated get_servicemap() to use the new API.