Makes lac1 more reliable, esp with respect to reading stale input.

This version is able to successfully complete > 10,000 commands without
locking up.