Yuan Chwang's "Si-Yu-Ki" (Records of the Western Regions) is a valuable historical source. He noted the judicial system sometimes employed ordeals by fire, water, poison, or weighing metal to determine guilt or innocence. He also documented that tradesmen were required to pay duties at various checkpoints, including ferries and barrier stations, which constituted a source of state revenue.