Added `enableDuplicate` option. This option is useful for items with subitems.