Add calc version to generated code