Add callback function that is called when a link is found.