Added support for duplicating items.