Updated shell script