Moved code to calibration command.