Add more extensive logging.