Added a wee bit of logging.