Better formatting for the write_changes