Added ability to filter patents before processing on arbitrary predicates.