Added asynchronous logging.