See previous comment about using a `while` loop.