Adding a bunch more logging.