Is this magic timeout in the `done` condition check necessary?