Updated the bash script.