Centralize filtering logic
README updated