Added a little bit more logging.