Can you go back and add some unit tests for this function? Just a quick sanity check that it correctly applies the interpolation?