Moved Ping command to handler