Implemented distortion calibration.