It would be better to move the thread to vb.net