At first the princes and other conservatives successfully resisted the king's reform agenda, but as the older generation was replaced by younger and western-educated princes, resistance faded. The king could always argue that the only alternative was foreign rule. He found powerful allies in his brothers Prince Chakkraphat, whom he made finance minister, Prince Damrong, who organized interior government and education, and his brother-in-law Prince Devrawongse, foreign minister for 38 years. In 1887 Devrawonge visited Europe to study government systems. On his recommendation the king established Cabinet government, an audit office and an education department. The semi-autonomous status of Chiang Mai was ended and the army was reorganised and modernised.