I do not believe to be the best solution, but that works fine for me. I made a new function to send commands based on the former, with the difference that she always checks if the remote port is available before to send the query. If you can fix this another way is rly better, thanks! Function Tfrm_...