OK, after all day breaking my head, I think I have figured it out how to use this command excatly and when and how it executes. Code is working now.
Thanks for the input.