Bozeman resident Jamie Grubb was sentenced to 16 years in prison, Thursday, after he admitted to receiving and distributing sexually explicit images of a minor, as well as cyberstalking the victim.

In addition, Grubb, 31, was sentenced to 20 years of supervised release and ordered to pay $50,000 restitution.

The sentences were handed down in a Missoula courtroom by Chief U.S. District Judge Dana Christensen.

According to the U.S. Attorney's Office Montana District, Grubb pleaded guilty to ten criminal counts, including seven counts of distribution of child porn, transportation of child porn, cyberstalking and interception of wire, oral and electronic communications.

Prosecutors say that in 2011, Grubb was in a relationship with a minor girl and took sexually explicit images of her. Although the girl also took sexually images of herself, and sent them electronically to Grubb, he then put those images on the internet without the girl's knowledge for a period of two years.

Gallatin County Sheriff’s Office detectives served search warrants for Grubb’s email and and found he transferred the explicit images, including a video of the victim, to himself via email.

According to law enforcement officials, detectives also analyzed the victim’s smart phone and determined Grubb had placed spytracker software on her phone without her knowledge. There was evidence of the same software on Grubb’s phone.

The U.S. Attorney's Office credits Assistant U.S. Attorney Cyndee Peterson for prosecuting the case. The case was investigated by Montana Probation and Parole, the Gallatin County Sheriff’s Office and Homeland Security Investigations as well as the Internet Crimes Against Children Task Force.

This article is based on information from the U.S. Attorney's Office Montana District.