Add explicit vars to capture children in paths