Make resampling simpler, faster