Hugh McMaster : reg: Add initial 'query' support.