Fix syntax error in run script
Extract setup from run script