Hi Ashutosh, Michael,
Thank you for raising great points.
Yes, the "subtraction of 1" for index change looks good.
Thank you Michael for pushing the code.
Regards,Surya Poondla