Wrapped ping exercise in a loop