Added ping methods and PingResult class