Use Array natives for iteration.

Fix indentation.