Changed internal iter to be a pointer.