Adding some useful logging.