Fixes #3 - removal of duplicates