Added &query_reporter subroutine.