Calibration - works.
Function for calibration extracted.
Calibration organized.