Work on writing to new files