Tried to add logging.