Calibrating the machine