Results analysis script