The man has been sentenced to 12 years in prison.