Added t4 code generation