Changed CompareRelation to PRedicate.