Make the comparator global