Collapsing bubbles first
Added condition to expensive sanity check