More serialization and stuff.