CBS confirmed Sunday evening that longtime CEO and Chairman Les Moonves has been ousted from the company as he fends off a widening sexual misconduct scandal.

Moonves, who has been accused of lewd and sometimes violent behavior by now a dozen women, is out effective immediately, according to a statement from CBS.

As part of the ouster, he and CBS will donate $20 million to one or more charities supporting the #MeToo movement and equality for women in the workplace, the company said.

The dough will be deducted from any severance Moonves is due following an independent investigation into his actions at CBS.

“Moonves will not receive any severance benefits at this time (other than certain fully accrued and vested compensation and benefits); any payments to be made in the future will depend upon the results of the independent investigation and subsequent Board evaluation,” the company said in a statement.

Chief Operating Officer Joseph Ianniello will take over as acting CEO, according to the company.