Tested both read and write