Add namespace support to traverse