Add logic to detect possible Chain and Possible Swaps.