In 1392, during the reign of Taizu, a minimum age was decreed, with only men over 40 years old and women over 50 years old being allowed to become priests. These restrictions, however, changed over time, as in 1419, laws state that only those above 14 and below 20 years old, and whose parents both approved, would be allowed to study Taoist classics in temples and sit the examination after 5 years (thereby becoming a priest at a younger age than was previously required). Those who passed would be given a "dudie", while the others would have to secularize. Teenagers whose parents or grandparents did not have other offspring to depend on were not allowed to become monks or priests either. Those older than 30 or younger than 40 years old, who were once monks or priests but later secularized, were not allowed to become priests again.