Initial import.
Some refactoring for the DQM reports.