More logging around linking