Adding NaN chuecks to the interpolator andthe print function