Added comparator methods