Added local debug for table calibration ('d' to activate, Shift/Ctrl/arrow keys to debug).