Added ping feature, and more statistics