Small changes

Added comparator, Code doesn’t compile right now