Partially removed logging.