Added a little logging.