@dpradeep Can you check the  above logic of code from line 73-94.