Improving link detection