Added pertial serialization.