Slightly improved performance for iterating.