Everything you added to the script in
this post. Which I explained why it doesn't work in
this post.
What is posted there will not work with you either. It will not work for anyone as that altered and added code of yours is full of bugs and doesn't make much sense either.
Nothing personal, but why are people not reading posts properly? *sigh*