 During the Bangkok Period most of these features were retained.For instance, the Chau Phaya-Phraklang in his capacity as Minister of State on behalf of Jessadabodindra negotiated the Siamese-American Treaty of Amity and Commerce of 1833 with Edmund Roberts in his capacity as Minister of the United States on behalf of President Andrew Jackson.In 1840, King Mongkut, the next king, founded the Ministry of Foreign Affairs of the Kingdom of Siam, which was administered directly by the king.