Filling out the threaded file writer, not working yet. Finished for the day