Label code generation