A man in Texas who filmed himself licking ice cream and putting the carton back into a supermarket freezer has been sentenced to 30 days in prison.
D'Adrien Anderson, 24, was also sentenced to two years' probation for the stunt, which occurred amid a viral trend of ice cream-licking at shops, NBC News reported.
The video of him was shared on social media last August.
Surveillance cameras at the Walmart supermarket revealed he returned to take the ice cream back out of the freezer and bought it.
Anderson has been fined $1,000 (£770) and ordered to pay $1,565 (£1,208) to the ice cream company, Blue Bell Creameries.
He was also ordered to complete 100 hours of unpaid work.
He pleaded guilty to misdemeanour criminal mischief and told police he licked the ice cream as a prank before going back to buy it.
However Blue Bell Creameries, a beloved Texas ice cream company, replaced all of the ice cream in the Walmart freezer as a precaution at a cost of $1,565.
"Anderson's actions caused public concerns about the safety and quality of consumer products offered for public consumption, impacted Blue Bell consumer confidence and caused the company financial loss. This type of activity will not be tolerated," the Jefferson County District Attorney's Office said.
The office said any similar case will be taken seriously.
Walmart said in a statement: "If food is tampered with, or a customer wants to leave the impression that they left behind adulterated product, we will move quickly with law enforcement to identify, apprehend and prosecute those who think this is a joke - it is not."
Texas Governor Greg Abbott previously hailed police for tracking down another teenager who took part in the viral Blue Bell-licking trend, and warned in a tweet: "Don't Mess With Texas... or with Blue Bell".