Added code for checking link-errors