Attempting to get the generated code to be accepted by cg