Add p for predicates
Name change and typo in function