Moved calibration methods out of main code base into examples.