The value of the timeout was getting overwritten by incorrect code. I was seeing timeout errors while trying to write to the display from SHRDLU. The fix seems to help a lot.