Add the global resampling method