He was sentenced to up to 25 years in prison.