Add duplicate submission functionality to deal with issue #291