anchor.diff:  		_ ->
   			MatchHead#client{protocol = String}
   	end,
  -	query_clients3(start, MatchHead1, Identifier, Secret);
  -query_clients2(start, MatchHead, Identifier, '_', Secret) ->
  -	query_clients3(start, MatchHead, Identifier, Secret).
  -%% @hidden
  -query_clients3(start, MatchHead, Identifier, {like, String}) ->
  +	query_clients3(start, MatchHead1, MatchConditions, Identifier, Secret);
  +query_clients2(start, MatchHead, MatchConditions, Identifier, '_', Secret) ->
  +	query_clients3(start, MatchHead, MatchConditions, Identifier, Secret).
  +%% @hidden
  +query_clients3(start, MatchHead, MatchConditions,
  +		Identifier, {like, String}) ->
   	MatchHead1 = case lists:last(String) of
   		$% ->
   			Prefix = lists:droplast(String),
  
positive.code: 		_ ->
  			MatchHead#client{secret = String}
  	end,
  	query_clients4(start, MatchHead1, Identifier);
  query_clients3(start, MatchHead, Identifier, '_') ->
  	query_clients4(start, MatchHead, Identifier).
  %% @hidden
  query_clients4(start, MatchHead, Identifier) ->
  	MatchSpec = [{MatchHead, [], ['$_']}],
  	F = fun() ->
  			mnesia:select(client, MatchSpec, ?CHUNKSIZE, read)
  	end,
  	query_clients5(mnesia:ets(F), Identifier);
  query_clients4(Cont, _MatchHead, Identifier) ->
  	F = fun() ->
  			mnesia:select(Cont)
  	end,
  
negative.code: 		Reason :: term().
  %% @hidden
  query_clients(start, {like, String}, Identifier, Port, Protocol, Secret) ->
  	{MatchHead, MatchConditions}  = case lists:last(String) of
  		$% ->
  			{AddressMatch, Conditions} = match_prefix(lists:droplast(String)),
  			{#client{address = AddressMatch, _ = '_'}, Conditions};
  		Address ->
  			{#client{address = inet:parse_address(Address), _  = '_'}, []}
  	end,
  	query_clients1(start, MatchHead, MatchConditions,
  			Identifier, Port, Protocol, Secret);
  query_clients(start, '_', Identifier, Port, Protocol, Secret) ->
  	MatchHead = #client{_ = '_'},
  	query_clients1(start, MatchHead, [], Identifier, Port, Protocol, Secret);
  query_clients(Cont, _Address, Identifier, _Port, _Protocol, _Secret) ->
  	query_clients4(Cont, [], [], Identifier).
  %% @hidden
  query_clients1(start, MatchHead, MatchConditions,
  		Identifier, {like, String}, Protocol, Secret) ->
  	MatchHead1 = case lists:last(String) of
  		$% ->
  			Prefix = lists:droplast(String),
  