Use setIteratorMode() correctly.