Facilitates the searching for the path.