Implemented iterate.