Change algorithm in update script