#20: Added priorization of the selected paths.