Prune more irrelevant paths