The examination-based civil service thus promoted stability and social mobility. The Confucianism-based examinations meant that the local elites and ambitious would-be members of those elites across the whole of China were taught with similar values. Even though only a small fraction (about 5 percent) of those who attempted the examinations actually passed them and even fewer received titles, the hope of eventual success sustained their commitment. Those who failed to pass did not lose wealth or local social standing; as dedicated believers in Confucian orthodoxy, they served, without the benefit of state appointments, as civilian teachers, patrons of the arts, and managers of local projects, such as irrigation works, schools, or charitable foundations.