Async writing to output