Untested start to (de)serialization routines