Add pattern predicates