Updated tool to have netstat command in a thread.