Improved iterator declaration