Add autonumbering when duplicating