Switch to BufferedWriter