Replaced for loop with foreach...this can happen if you code to long.