Changed write some to async write