Added clone() method and updated utility.getCompare() method.