A method for a first wireless node for a wireless communication system, the method comprising: obtaining input data (v), a set of target parity encoding properties for the input data (v) and a set of predetermined parity encoding codes (MC 1 -MC M) each having a set of offered parity encoding properties (OEP 1 -OEP M), obtaining a candidate parity encoding code (MC m) from the set of predetermined parity encoding codes (MC 1 -MC M) by evaluating a set of criteria on the set of target parity encoding properties and the sets of offered parity encoding properties (OEP 1 -OEP M), wherein evaluating the set of criteria comprises comparing a target information block length (k_0) comprised in the target parity encoding properties to an offered information block length (k_i) comprised in the offered parity encoding properties (OEP 1 -OEP M) and wherein evaluating the set of criteria comprises evaluating that an offered number of encoding parity bits, comprised in the offered parity encoding properties, of the candidate parity encoding code, is closest to the target number of encoding parity bits, comprised in the target parity encoding properties, wherein it is tested whether the offered number of parity bits of the candidate parity encoding code is larger or smaller than the target number of parity bits and if the offered number of parity bits of the candidate parity encoding code is larger, the candidate parity encoding code is punctured, and if the offered number of parity bits of the candidate parity encoding code is smaller, repetition is performed on the candidate parity encoding code so that the number of parity bits is matched to the target number of parity bits, and, generating transmission data (c_tx) by encoding the input data (v) using the candidate parity encoding code (MC m) matched to the target number of parity bits. obtaining input data (v), a set of target parity encoding properties for the input data (v) and a set of predetermined parity encoding codes (MC 1 -MC M) each having a set of offered parity encoding properties (OEP 1 -OEP M), obtaining a candidate parity encoding code (MC m) from the set of predetermined parity encoding codes (MC 1 -MC M) by evaluating a set of criteria on the set of target parity encoding properties and the sets of offered parity encoding properties (OEP 1 -OEP M), wherein evaluating the set of criteria comprises comparing a target information block length (k_0) comprised in the target parity encoding properties to an offered information block length (k_i) comprised in the offered parity encoding properties (OEP 1 -OEP M) and wherein evaluating the set of criteria comprises evaluating that an offered number of encoding parity bits, comprised in the offered parity encoding properties, of the candidate parity encoding code, is closest to the target number of encoding parity bits, comprised in the target parity encoding properties, wherein it is tested whether the offered number of parity bits of the candidate parity encoding code is larger or smaller than the target number of parity bits and if the offered number of parity bits of the candidate parity encoding code is larger, the candidate parity encoding code is punctured, and if the offered number of parity bits of the candidate parity encoding code is smaller, repetition is performed on the candidate parity encoding code so that the number of parity bits is matched to the target number of parity bits, and, generating transmission data (c_tx) by encoding the input data (v) using the candidate parity encoding code (MC m) matched to the target number of parity bits. comprises evaluating that an offered number of encoding parity bits, comprised in the offered parity encoding properties, of the candidate parity encoding code, is closest to the target number of encoding parity bits, comprised in the target parity encoding properties, wherein it is tested whether the offered number of parity bits of the candidate parity encoding code is larger or smaller than the target number of parity bits and if the offered number of parity bits of the candidate parity encoding code is larger, the candidate parity encoding code is punctured, and if the offered number of parity bits of the candidate parity encoding code is smaller, repetition is performed on the candidate parity encoding code so that the number of parity bits is matched to the target number of parity bits, and, generating transmission data (c_tx) by encoding the input data (v) using the candidate parity encoding code (MC m) matched to the target number of parity bits.