Now only writes to each file one time. Kind of a progress bar or something.