Add logging to exceptions in calibration.
Separate path assignment for clarity.