Updated group analysis scripts