More idiomatic for loop fix.