Implemented automatic geometry calibration. Easy-peasy.

Implemented automatic geometry calibration. Easy-peasy.