Added function to perform ad-hoc ping sweeps