-- Added replaceNCopy