service_query missing

In the service_ip method, service_query is used in the place of the search query, but it is not defined prior to use. This pulls in the 'service_query' attribute from the named service attributes or default attributes.