Add serialization of serializable model.