Make for loop more idiomatic.