PORTLAND (AP) — A Massachusetts man has been sentenced in federal court in Maine to 12 years in prison on drug charges.

Joshua Snow of Lynn, Mass., was also sentenced Monday in U.S. District Court in Portland to six years of probation upon release.

The 30-year-old Snow pleaded guilty in May to a charge of possession with intent to distribute oxycodone.

According to court records, Snow was pulled over by Maine State Police on Interstate 95 in Falmouth in January. He was found to be in possession of 500 oxycodone pills.

Police said Snow said the pills were his and that he intended to distribute them.

Snow was found to be career offender which subjected him to harsher sentencing penalties.