Code generation madness.