Added run.sh and changed for loop in main to only execute once