Almost there with resampling