Online Reference calibration