Updated Shell script