Add filter

Fixes #1