Cpp utilities by Ying Xiong.