Adds confidence stabilization, and resampling keep percentage