Started to integrate the path selection.