Added methods to read/write