Use `loop` instead of `while true`.