Main output corrected