Different link detection function.