Modified read and write
Completed