Labels should be named properly, and one index per code_gen
added fraction to scheme.lib