Add namedtuple support