Changed Predicate.compare() to Predicate.evaluate()