More serialization stuff.