Adding asynchronous Write method.