Siam's response under King Mongkut was to commence a wide programme of reform on the Western model, which including the Siam military. The Royal Thai Army traces its origins as a standing force to Mongkut's creation of the Royal Siamese Army as a standing force in the European tradition in 1852. By 1887, Siam had permanent military commands, again in the European fashion, and by the end of the century, Siam had also acquired a Royal Navy from 1875 with a Danish naval reserve officer, Andreas du Plessis de Richelieu in charge, and after his departure in 1902 with the Thai noble title Phraya Chonlayutthayothin (Thai: พระยาชลยุทธโยธินทร์) under the reforms of Admiral Prince Abhakara Kiartiwongse. Siam's increasing focus on centralised military force to deter European invasion came at the cost of the former decentralised military and political arrangements, beginning a trend towards centralised military power that would continue into 20th century Thailand. Despite the growing Siamese military strength, Siam's independence during much of the late-19th century hinged on the ongoing rivalry between Britain and France across the region, especially in the search for lucrative trade routes into the Chinese hinterlands. By developing an increasing sophisticated military force and playing one colonial rival against the other, successive Siamese monarchs were able to maintain an uneasy truce until the 1890s.