Added retry and timeout to card position calibration.