Added read and write functions prototypes