Moar serialization stuff.