Adding query to the protocol.