A whole bunch of improvements to the dqm.