Added some extra hopefully useful logging.