Add write and readTo