Added automatic destruction of unused links