Created read/write function prototypes