Add namedtuple for path segment