Basic support for a common filter

Signed-off-by: David Kullmann <kullmann.david@gmail.com>