Added TS_groups and TS_training for intraHMigration