A Morgantown man was sentenced to prison Monday for selling heroin to a woman, who died after injecting it.

Gary Richmond sold heroin to Hanna Sovastion, 24, in October 2016, according to West Virginia State Police. Sovastion injected the heroin while in her vehicle, which was in eyesight of Richmond’s home, police said, and died as a result of the heroin that was given to her.

Richmond was originally charged with first-degree murder for Sovastion’s death but later pleaded to two lesser charges: delivery of a controlled substance causing death, which is a new charge in the state of West Virginia, and possession with intent to deliver a controlled substance.

Judge Russell Clawges, Jr. sentenced Richmond to 15 years in prison for delivery of a controlled substance causing death and one to 15 for possession with intent to deliver a controlled substance, which will run consecutively. Richmond will be eligible for parole in five years.

Clawges, Jr. also suggested that Richmond take advantage of treatment opportunities when he leaves prison.

Richmond said he takes 100 percent of the responsibility for his part in Sovastion’s death and apologized to the family, saying he is truly sorry.