The man accepted the offer and pleaded guilty to attempted murder. The prosecution had recommended 20 years in prison.