Greg comparator