Resampling only when degeneracy is there.