Switched over two writeError statements to .out.println statements.