Pluggable filters (fixes #8)