Changes to support sending queries to the server from the client.