Updated version of run.sh