Remove duplicates & external links