Changed visibility of write()