his role in the project, Yuwen was promoted to be the deputy imperial censor (御史中丞, Yushi Zhongcheng). In 725, Emperor Xuanzong gave Yuwen the additional office as deputy minister of census (戶部侍郎, Hubu Shilang). He also decreed that the grains submitted as taxes by the census evaders were to be put aside in storage in case of famine, and also established agriculture promotion offices in the prefectures and counties to try to enhance agriculture. Later that year, when Emperor Xuanzong suspected the ministry of civil service affairs to be unfair in its selection of officials, Yuwen suggested that he appoint 10 officials to review the selections, and then further review the 10 examiners' decisions. Emperor Xuanzong agreed and carried out the plan, despite objections submitted by the official Wu Jing (吳兢), although in 726 he stopped the scheme. Meanwhile, it was said that the senior chancellor Zhang Yue despised Yuwen, but also did not view him as a threat, despite warnings from his subordinate Zhang Jiuling. In 726, Yuwen, along with Li Linfu and another official who resented Zhang Yue, Cui Yinfu (崔隱甫), submitted accusations of corruption against Zhang Yue. Subsequently, Zhang was removed from his chancellor position, but at the intercession of the powerful eunuch Gao Lishi, avoided further punishment. Fearing that Zhang Yue would eventually return to the chancellor position, Yuwen and Cui formed a faction with other officials, against Zhang Yue and his faction. In 727, Emperor Xuanzong, tired of that situation, ordered Zhang Yue to retire, Cui to return home to serve his mother, and demoted Yuwen to be the prefect of Wei Prefecture (魏州, in modern Handan, Hebei). In 728, Emperor Xuanzong gave Yuwen the additional posts as the examiner of Hebei Circuit (河北道, roughly modern Hebei, Beijing, and Tianjin) as well as deputy minister of census. Later that year, he made Yuwen the prefect of Bian Prefecture (汴州, roughly modern Kaifeng, Henan), and gave Yuwen the additional responsibility of managing the Yellow River levees. Yuwen proposed that the ancient routes of the Yellow River—when the lower Yellow River divided into nine river routes—be located, and that the routes be used for irrigation of rice fields; further, he also proposed that the routes could then be used for transportation. Emperor Xuanzong approved of the plan, which however did not have much progress despite expenses. In 729, tired of the constant arguments between the chancellors Li