Implement calibration for x offset
Include x offset calibration in main program
Adaptation of data structure for x offset calibration