Now only makes links with entries which have valid status. Still quite a few duplicates, though.