Modified not to use tuple duplicate()