Adding ping function for testing if a connection has timedout