Kv filter

Rebase of #315