Fix #47 Add a check to detect duplicates
Merge pull request #48 from theasta/47-check-duplicates

Fix #47 Add a check to detect duplicates