Working on the file writer