Modified analysis script