Making framework for calibration routine