Add piecewise linear interpolation.