Adds calibration and non-linear least squares estimation.