Fifth part of the DQM logic.