A man seeking pain relief gets 25 years