modified scripts to aggregate results as analysis progresses