Output messages only if needed