Changed threshold on maximum nr of paths to search for.