Added option for logarithmic interpolation.