Added better scoring mechanism for links.