An apparently minor optimization of the leapfrogging algo.