Fixed problem with attribute group duplication
More experimentation