Path rewiring step added