Generate code separately