Added read and write functionality to driver