Fixed NaN issue; still need to (correctly) fix NaN issue in 'MEAN1' script