Support saving/loading models.