SweepAndPrune