Add configurable packet filtering. Closes GH-3