BRUNSWICK, Maine — A 19-year-old Massachusetts man who police say carried 168 grams of cocaine strapped to his inner thigh and in a body cavity has been indicted by a grand jury for Class A aggravated trafficking in scheduled drugs.

Hector Nieves-Martinez of New Bedford, Mass., was arrested just after 4 a.m. Aug. 7, on Route 1 near Cook’s Corner after police allegedly observed him operating erratically, Deputy Chief Marc Hagan of the Brunswick Police Department said at the time.

Brunswick police Officer Matthew Swan reportedly smelled marijuana in the car, so he questioned the occupants. Hagan said stories told by the three people in the car didn’t match, “leading [Swan] to believe they had illegal narcotics” in the car.

A search allegedly revealed 159 grams of cocaine, packaged for resale, strapped to Nieves-Martinez’s inner thigh, Hagan said. During a subsequent search, police allegedly found an additional 9 grams in a body cavity.

Altogether the cocaine had a street value of $15,000-$20,000, Hagan said.

A Cumberland County grand jury handed up the indictment on Friday. If convicted, Nieves-Martinez faces up to 30 years in jail.