Corrected writing access - now using PrintWriter.