 He next established the office of the Supreme Patriarch of Thailand.Then, following the precedent of the newly crowned King Wareru of the 13th century, the newly crowned king of Siam commissioned scholars to collect and revise laws from the Ayutthaya era.The Code of Wareru is reflected in successive codes, but the Siamese went beyond it to establish a true code of laws.