Integrated extrapolation algorithm with Sam's interpolation.