Script for performing the analysis