Looper for the update script

Created the loop for the update script