Adjusted LDlink to accept two parameters.