Script for analysis