Improved event logging.