Codegen & "adding" chains