Update where function.