Integrate resampler functions and moved into common directory.