Removing duplicates. Closes #4