Updated serialization samples.