Won't this fail, since the write function now does not accept an 'options' argument?