Beginnings of link intercepting code