Added c-template