Added basic deduplication