Added reading and writing of form values