Add method of creating serializeble model.