Issue #29 work. Fixed checkout, added more logging.