Adding comparator methods