Added read and write as well as working model