Updated threshold throughout the script.