Update detection script