[WIP] Add a writable API