Added back the array based asyncWrite method.