Better use of logging.