hum, sorry i did not understand your last post
I want you to add the highlighted lines to your function, where I show them.