@rlkoshak Thanks for your advice. I have created a new thread for the solution above.
Please make it a wiki article.