Making models compatible with upload