First implementation of duplicate and delete state