Using iterator ranges throughout