Streamlined several points after reading, simplified ping example.