Added a little bit of debug logging.