Change calibration functions to return 0 on success