Use for loops instead of getting the index even when we don't need it.