Adding async logging