Thank you Belhifet, that helps me alot!
I was able to fix my script smile