-Added if (settings.trace) in getGroups