Use range() instead of c-style.