Modified quality metrics output logic.