Updates to compare.java