CNN  — 

Ashton Kutcher and Mila Kunis have shared a video in which they said they are “aware of the pain” they caused by writing letters on behalf of Danny Masterson ahead of his rape conviction sentencing.

Kunis and Kutcher, who co-starred with Masterson on “That ’70s Show,” were among nearly 50 people who advocated for leniency for the actor before he was sentenced Thursday to 30 years to life in prison for raping two women in 2003.

Masterson has maintained his innocence and plans to appeal his case.

In their video shared on Instagram on Saturday, Kutcher said Masterson’s family asked them to write character letters describing “the person that we knew for 25 years so that the judge could take that into full consideration relative to the sentencing.”

“The letters were not written to question the legitimacy of the judicial system or the validity of the jury’s ruling,” Kunis said.

In their letters to court, the couple vouched for Masterson’s character.

“I do not believe he is an ongoing harm to society,” Kutcher wrote, while Kunis described Masterson as an “outstanding role model and friend.”