Add back resampler selection code