New version of update script