Added dynamic range for iterator