On April 6, 1896, the Home Ministry (内務省 "Naimu-shō") issued "Directive No. 12," which ordered strict and secretive surveillance over Tenrikyo Church Headquarters under the pretense of maintaining and strengthening the state polity of Japan. Issues raised by authorities were the congregation of both men and women together (which could potentially lead to disgrace), the obstruction of medical treatment, and the alleged policy of enforced donations. The Tenrikyo leaders complied to the state demands in several ways. They changed several aspects of their prayer ritual, known to adherents as the Service. The name of the Tenrikyo deity Tenri-O-no-Mikoto was changed to "Tenri-no-Okami." Tenrikyo Church Headquarters' conformity with the state demands resulted in a dual structure of the Tenrikyo faith, where on the surface, Tenrikyo complied with the state demands, while adherents disregarded those changes and maintained the teachings and rites as initially taught by Miki Nakayama. In 1899 the Shinto Main Bureau advised the Tenrikyo Church Headquarters officials about the possibility of official recognition as an independent religion (independent meaning to be classified directly under the Meiji government, which upheld State Shinto ideology). Tenrikyo leaders worked to systemize the Tenrikyo doctrine and institutionalize the organization so that the petition for independence would pass. Tenrikyo Church Headquarters made a total of five attempts before it finally achieved independence in 1908. On April 1, 1900, Tenri Seminary, Tenrikyo's first educational institution, was founded as a training school for ministers. In 1902, Tenrikyo arranged its mission administration system in Japan, which divided the country into ten dioceses and appointed superintendents to supervise regional missionary activities. In 1903, an edition of Tenrikyo's doctrine was compiled (known today as the "Meiji kyoten", or the Meiji version of Tenrikyo's doctrine). This edition of the doctrine differs significantly from the present edition because the teachings of State Shinto were incorporated in order to gain the Home Ministry's approval. Although Tenrikyo Church Headquarters complied with many of the state's requests, it did not compromise on the request to completely eliminate the "Mikagura-uta" ("The Songs for the Service"), one of Tenrikyo's main scriptures. Around this time, Tenrikyo began to open its first churches overseas in Taiwan (1897) and Korea (1904).