Efficient iteration implemented