Updated the resampler