Updates to the script to analyze the NAS data