Improve the shell script.