Add changes to write data to a file.