Adding a bit more logging.