Using `while` to iterate and iterator is displeasing.  Please use a foreach loop.