A method for reducing lower order harmonics of a multi-level power converter comprising at least one phase leg comprising a plurality of chain-link connected cells each comprising a capacitor, the method comprising, for each phase leg of the converter: obtaining, from a current control, a present reference voltage (u ref) for use during a present half switching duration (T sw /2), a half switching duration being a time period corresponding to one switching opportunity of the cells; dividing the half switching duration (T sw /2) into a plurality of time intervals (t A -t 1, t 1 -t 2, t 2 -t B); and at the beginning (t A, t 1, t 2) of each time interval (t A -t 1, t 1 -t 2, t 2 -t B): predicting the reference voltage (u ref) waveform for the remainder of the half switching duration (T sw /2) based on the obtained present reference voltage (U ref); predicting the leg output voltage (u leg) waveform for the remainder of the present half switching duration (T sw /2) for the case (S4b) that switching for one cell is performed in the leg during the time interval; predicting a flux error (F error), being a time integral of a difference between the leg output voltage (u leg) and the reference voltage (u ref), at the end (t B) of the present half switching duration (T sw /2) for the case, based on the obtained present reference voltage (u ref), the predicted reference voltage waveform and the predicted leg output voltage (u leg) waveform, wherein the predicted flux error is a cumulative flux error of the present half switching duration (T sw /2) and a preceding half switching duration; and determining not to perform switching for any cell in a present time interval of the plurality of time intervals when the predicted flux error passes zero during the first half switching duration (T sw /2). obtaining, from a current control, a present reference voltage (u ref) for use during a present half switching duration (T sw /2), a half switching duration being a time period corresponding to one switching opportunity of the cells; dividing the half switching duration (T sw /2) into a plurality of time intervals (t A -t 1, t 1 -t 2, t 2 -t B); and at the beginning (t A, t 1, t 2) of each time interval (t A -t 1, t 1 -t 2, t 2 -t B): predicting the reference voltage (u ref) waveform for the remainder of the half switching duration (T sw /2) based on the obtained present reference voltage (U ref); predicting the leg output voltage (u leg) waveform for the remainder of the present half switching duration (T sw /2) for the case (S4b) that switching for one cell is performed in the leg during the time interval; predicting a flux error (F error), being a time integral of a difference between the leg output voltage (u leg) and the reference voltage (u ref), at the end (t B) of the present half switching duration (T sw /2) for the case, based on the obtained present reference voltage (u ref), the predicted reference voltage waveform and the predicted leg output voltage (u leg) waveform, wherein the predicted flux error is a cumulative flux error of the present half switching duration (T sw /2) and a preceding half switching duration; and determining not to perform switching for any cell in a present time interval of the plurality of time intervals when the predicted flux error passes zero during the first half switching duration (T sw /2). predicting the reference voltage (u ref) waveform for the remainder of the half switching duration (T sw /2) based on the obtained present reference voltage (U ref); predicting the leg output voltage (u leg) waveform for the remainder of the present half switching duration (T sw /2) for the case (S4b) that switching for one cell is performed in the leg during the time interval; predicting a flux error (F error), being a time integral of a difference between the leg output voltage (u leg) and the reference voltage (u ref), at the end (t B) of the present half switching duration (T sw /2) for the case, based on the obtained present reference voltage (u ref), the predicted reference voltage waveform and the predicted leg output voltage (u leg) waveform, wherein the predicted flux error is a cumulative flux error of the present half switching duration (T sw /2) and a preceding half switching duration; and determining not to perform switching for any cell in a present time interval of the plurality of time intervals when the predicted flux error passes zero during the first half switching duration (T sw /2).