Updated to get critical number