Removing fs.createWriteStream and adding fs.write.