Add more functionality to ping command