Added ping + better result management