Async logging
Updated version