Third part of the DQM logic.