Finishing off query mode.