Implement multiple predicates.

Closes #26.