Final fixes. Code generation.