Added phrase deduplication