Changed probabilities implem (resampling)