Working on a calibration snippet for the main program