Added method to find all paths.