Implement FilterPolicies

Fixes #3, #4