The majority whip of the California state assembly cited sexual harassment allegations against him on Monday as he announced his plan to resign at the end of his legislative term and suspend his campaign for re-election.

“I spent my life advocating for the Northeast Valley, fighting for a fair share for our communities and residents,” California state Assemblyman Raul Bocanegra said in a statement, according to the Los Angeles Times. “It is because of my deep commitment to you, residents of the 39th Assembly District, that I have made the decision to resign from the State Assembly, effective September 1, 2018, and immediately resign my leadership position. I am also suspending my campaign and will not run for re-election.”

The announcement came as the Times was preparing to publish a story accusing Bocanegra of sexually harassing six women. The outlet reportedly reached out to the assemblyman’s office regarding the report on Friday afternoon.

Bocanegra responded saying he would call for the Assembly Rules Committee to investigate the claims.

“I believe rather than adjudicate these allegations in media reports, there should be a formal investigation into these matters,” he wrote, according to the paper. “I am committed to full cooperation.”

Bocanegra said his decision to remain in office until the end of the term was to save the state from “another costly special election” and “ensure our community is not left without any representation in the State Assembly.”

In October, the Times reported that the assemblyman was disciplined for an incident in 2009 where a Capitol staffer accused him of “inappropriate and unwelcome physical contact,” the Times reported.