During Tang, he was a major proponent for the compilation of the histories of Sui and its predecessor Northern Zhou and was eventually put in charge of compiling Northern Zhou's official history Book of Zhou, which was completed in 636.