Thanks for the explanation. I was wondering why the enhanced for loop is used on some places and not in others. I will fix that (and the other for loops) and send a new PR.