The "ritsuryō" system was codified in several stages. The Ōmi Code, named after the provincial site of Emperor Tenji's court, was completed in about 668. Further codification took place with the promulgation by Empress Jitō in 689 of the Asuka Kiyomihara Code, named for the location of the late Emperor Temmu's court. The "ritsuryō" system was further consolidated and codified in 701 under the Taihō Code, which, except for a few modifications and being relegated to primarily ceremonial functions, remained in force until 1868.