Added ping method