Both prior to and until shortly after the July 2009 Ürümqi riots, Wang Lequan was the Party Secretary for the Xinjiang region, effectively the highest subnational role; roughly equivalent to a governor in a Western province or state. Wang worked on modernization programs in Xinjiang, including industrialization, development of commerce, roads, railways, hydrocarbon development and pipelines with neighboring Kazakhstan to eastern China. Wang also constrained local culture and religion, replaced the Uyghur language with Standard Mandarin as the medium of education in primary schools, and penalized or banned among government workers (in a region in which the government was a very large employer), the wearing of beards and headscarves, religious fasting and praying while on the job. In the 1990s, many Uyghurs in parts of Xinjiang could not speak Mandarin Chinese.