Update to calibration.cpp