Adding self-calibration over serial