In the mid-7th century, a legal code called "Ritsuryō" was adopted to establish a Chinese-style centralised government. As part of this, the Jingikan ("Council of Kami") was created to conduct rites of state and coordinate provincial ritual with that in the capital. This was done according to a code of kami law called the "Jingiryō", itself modelled on the Chinese "Book of Rites". The Jingikan was located in the palace precincts and maintained a register of shrines and priests. An annual calendar of state rites were introduced to help unify Japan through kami worship. These legally mandated rites were outlined in the Yōrō Code of 718, and expanded in the "Jogan Gishiki" of circa 872 and the "Engi Shiki" of 927. Under the Jingikan, some shrines were designated as "kansha" ("official shrines") and given specific privileges and responsibilities. Hardacre saw the Jingikan as "the institutional origin of Shinto".