Auto Calibration functions complete. No compile error, but not tested yet.