Update where script