Changes to run_script