Add ability to write parts out to data files