Refactored to use more subs.
Added comment.
Accidentally had a prototype.  Weird.