Changing code. Calibration code is ok. Parameters are stored.