Separated iteration into own file