Updaed script