Condense output logic.