Added deduplication method