Next Step: Change deserialisations to return structs and alter curIndex as a pointer.