Implemented read and write commands.