Bugfix: setting the interrupt back to where it should be, as well as initialising the distance pointer to stop random board hangs.