Started to add Read and Write functions