Scripts for analysis