Changed ping method.