Sorry about that. That's why one should not play around with more than one version of code before posting their solution. I temporarily thought about dereferencing the array to make it simpler to access in the loop. But I personally would never do this, so I removed the temporary simplification ...