Add filter method

- Fixes #32