Final commit for week 5.  Lots and lots of logging.