Implemented fix for infinite-loop request issue (Fixes #3).

All 108 tests pass.