Add writing support

Signed-off-by: Saggi Mizrahi <ficoos@gmail.com>
Stuff

Signed-off-by: Saggi Mizrahi <ficoos@gmail.com>