Logic for filters.
Merge branch 'master' of https://github.com/nightsprout/tandem