Finalized sfl_functions addressing error caused by NaNs in calibration surface.