Finalizing queries and justifications

All in the title.