Implementing code generation.