Added insertDuplicate function

Change-Id: I61f76b10eb9dff8d8b6dfc88d60cfc4be6e6cd29