I would really appreciate if you can revert to the original loop.

We can argue further about this, but my goal is really not to win this particular argument, but to merge this as quickly as possible. I appreciate that you are investing some of your valuable time to contribute this patch (not as a gesture towards me personally, but towards the community). Let's keep the current loop, this patch is already fixing bugs in the code.