Add ping and reset funtion