Tweak master and worker loops.