Added duplicates name checking