Added another ping function for convenience.