Removing duplicates. Fixes #4