Initial checkin.
Added logging.