Added multithreading for multiple pings