Changed service code to reflect changes in API.