A version that actually works (filtering little frontiers)