Add Predicate.
Allow resetting.
Merge pull request #239 from xoppa/misc

Add Predicate.