Implemented PrunningIterator.