Refined pegging logic, updating commit f5e38813ea60cd485cadac085a8949de7889ed4b from April 14th
corrected unit test result: better plan with the revised "lazy retry" in the planning algorithm