 In 625, he was made acting "Shizhong" (侍中), the head of the examination bureau (門下省, "Menxia Sheng"), a post considered one for a chancellor, as well as the head of the household at the palace of Emperor Gaozu's crown prince Li Jiancheng.