Improve shell script.