Tool calibration