Added code to detect broken links