Speed increases

When looping through arrays, it's best to assign the array to a variable
to refrain from reading the array each time the loop iterates.