Rejiggered query scheduler.