Changed order of update script