An electrical chain-link converter system comprising: a converter phase leg for converting a plurality of direct current, DC, electrical currents from a plurality of DC power sources, which are generating varying power outputs which are non-equal to each other, to an alternating current, AC, of an electrical power distribution network, the phase leg comprising a plurality of serially connected converter cells each of which is connected to a respective power source of the plurality of DC power sources, the respective power sources being connected to each of the converter cells in parallel with a capacitor of said each converter cell, each converter cell producing active power and reactive power; and a control unit associated with the phase leg, the control unit comprising: a processor; and a storage unit storing instructions that, when executed by the processor, cause the control unit to, for each of the converter cells: obtain, by calculating, a cell-specific dedicated voltage reference for the converter cell, the voltage reference being dependent on a phase leg current, on the active power of the cell, on a total active power of the phase leg, and on a reactive power to be generated by the phase leg which is the reactive power the phase leg should produce and inject into the network to achieve the AC current of the network, in view of the non-equal power outputs such that the non-equal power outputs are compensated for; and transmit the voltage reference to the converter cell for controlling the active and reactive power outputted by the cell. a converter phase leg for converting a plurality of direct current, DC, electrical currents from a plurality of DC power sources, which are generating varying power outputs which are non-equal to each other, to an alternating current, AC, of an electrical power distribution network, the phase leg comprising a plurality of serially connected converter cells each of which is connected to a respective power source of the plurality of DC power sources, the respective power sources being connected to each of the converter cells in parallel with a capacitor of said each converter cell, each converter cell producing active power and reactive power; and a control unit associated with the phase leg, the control unit comprising: a processor; and a storage unit storing instructions that, when executed by the processor, cause the control unit to, for each of the converter cells: obtain, by calculating, a cell-specific dedicated voltage reference for the converter cell, the voltage reference being dependent on a phase leg current, on the active power of the cell, on a total active power of the phase leg, and on a reactive power to be generated by the phase leg which is the reactive power the phase leg should produce and inject into the network to achieve the AC current of the network, in view of the non-equal power outputs such that the non-equal power outputs are compensated for; and transmit the voltage reference to the converter cell for controlling the active and reactive power outputted by the cell. a processor; and a storage unit storing instructions that, when executed by the processor, cause the control unit to, for each of the converter cells: obtain, by calculating, a cell-specific dedicated voltage reference for the converter cell, the voltage reference being dependent on a phase leg current, on the active power of the cell, on a total active power of the phase leg, and on a reactive power to be generated by the phase leg which is the reactive power the phase leg should produce and inject into the network to achieve the AC current of the network, in view of the non-equal power outputs such that the non-equal power outputs are compensated for; and transmit the voltage reference to the converter cell for controlling the active and reactive power outputted by the cell. obtain, by calculating, a cell-specific dedicated voltage reference for the converter cell, the voltage reference being dependent on a phase leg current, on the active power of the cell, on a total active power of the phase leg, and on a reactive power to be generated by the phase leg which is the reactive power the phase leg should produce and inject into the network to achieve the AC current of the network, in view of the non-equal power outputs such that the non-equal power outputs are compensated for; and transmit the voltage reference to the converter cell for controlling the active and reactive power outputted by the cell.