Finished file adding and writing.