Ok, but please set `var method = async ? 'write' : 'writeSync'` at the top.