Fixed a minor bug.  Gotta watch out for that indexing!  Accidentally ended the while loop.