Refactors asynwrite, needs more testing