Add serialization.