An Anchorage man who was caught with more than 100g of heroin after stealing from a grocery store will serve five years in prison, a federal judge ruled on Thursday.

Prosecutors say 44-year-old Jason Paul Bryant-Wilde walked out of Natural Pantry on Aug. 25 with more than $200 of unpaid grocery items. An employee confronted Byrant-Wilde in the parking lot and detained him after a brief altercation.

“The loss prevention officer searched Bryant-Wilde while waiting for the Anchorage Police to arrive,” the U.S. Attorney’s Office wrote in a press release. “Bryant-Wilde had over 100 grams of heroin in his possession that he intended to distribute.”

The total street value of the drugs was estimated to be about $30,000, prosecutors said.