Working LMS codegen.