ping and active functions have been added.