Enhanced shell script