First try for comparator