Use modern for-loop.