Use generate_raw to generate the code