Rename func to iterator.