Filter out most irrelevant paths