Updated BufferedFileWriter