Increased performance. Replaced iterator++ with ++iterator.