Correct output file format