Added functionality to query for service id's