Lady Wei Huacun, an aristocrat from the Jin dynasty and a Celestial Master practitioner, was the first leader of the Shangqing School. Three decades after her death, from 364 to 370, Yang Xi (330-c. 386) supposedly had revelations "aided almost certainly by cannabis" (Joseph Needham 1980:213) and transcribed texts from a group of immortals and spirits that appeared to him. These texts eventually formed the basis of the school’s beliefs. The revelation began to spread in aristocratic circles of South China, and eventually Tao Hongjing, advisor to the princes of Qi, joined the group. He commented upon, and compiled the Shangqing texts, and developed a well-structured system consisting of a pantheon and new ways to reach immortality that depended upon meditation. More interested in Daoism and Buddhism than in public administration, in 492 he received authorization to leave the court. He moved to Maoshan, which had by now become the center of the school. There, with the help of the Emperor Wudi of the Liang dynasty, he built the temple of Huayang, the first Shangqing temple.