Automated group tidy script