Partial implementation of read/write