Defined the missing ping function