Thanks for the script
I am just trying the code. I share the entire code here so you where I am going wrong