Add write output file