Added debug logging back for excluding groups