Changed the write output