Proof of concept for filtering and collapsing