Renaming and type declaration in Dupes commands