Added the details to change the function for read and write