Commented out WriteDocument