Getting closer to working iteration