Improved BD filter

Now actually works