Problem with splitting the Duct with union fitting for the last piece

Hello all,
I created a script for splitting ducts with union. I used Tool.SplitDuctByPoints node from DynaTools Package and MEPFittingByMEPCurves node from MEPOver package. But the problem I am facing is the Tool.SplitDuctByPoints node is not giving the last duct element which it was splitting. Ultimately the input for the last duct is not going to MEPFittingByMEPCurves node. Is there any other nodes or way to do this process. Please refer to the attached image and help me out in finding the solution for this.
Thank You.

Result is this…Duct is splitting but without union

Solved Myself :smile: :smile: :smile: