Adding a bit of logging.