Added some debug printouts that may shed light on the causes of the gear speed checking problem (re #282)