Add delay to fix async logging