Add code to trace loosing chains.