Wang Anshi's ideas are usually analyzed in terms of the influence the Rites of Zhou or Legalism had on him. His economic reforms included increase currency circulation, breaking up of private monopolies, and early forms of government regulation and social welfare. His military reforms expanded the use of local militias and his government reforms expanded the civil service examination system and attempted to suppress nepotism in government. Although successful for a while, he eventually fell out of favor of the emperor.