Exporting the model and adjusting the script