Comparator implemented.