He was sentenced to up to life in prison.