Replace comparators with existing lib.