Using `auto` keyword for `iter` will make things simpler.