Changed the bash script a bit