The strongly Confucian Heungseon Daewongun proved to be a capable and calculating leader in the early years of Gojong's reign. He abolished the old government institutions that had become corrupt under the rule of various clans, revised the law codes along with the household laws of the royal court and the rules of court ritual, and heavily reformed the military techniques of the royal armies. Within a few short years he was able to secure complete control of the court, and eventually receive the submission of the Pungyang Jo's while successfully disposing of the last of the Andong Kim's, whose corruption, he believed, was responsible for the country's decline in the 19th century.