Modified shell script