Some changes to the analysis script.