Changing frontier_req to use iterator.