Add query to handshake sent