Working on CTemplate