Write made async
printfs removed