More powerful path replacement.