Applied some iterator magic