HELENA — Justin Flor, who is serving a five-year prison sentence for his role in a Montana medical marijuana dispensary, has reached a plea agreement with federal prosecutors regarding a separate child pornography case.

Under the agreement, filed this week in U.S. District Court, Flor will plead guilty to one count of possession of child pornography. In exchange, the federal government will recommend Flor be given a bit of leniency because he accepted responsibility — unless he’s found to have obstructed justice prior to sentencing — and recommend a 10-year sentence. That sentence is the statutory maximum for the offense, and prosecutors said they’re recommend it run concurrently with the marijuana sentence.

However, Judge Richard Cebull, who is hearing the case, doesn’t have to abide by any recommendations made by the defense or prosecuting attorneys.

Little information was made available regarding the charge against Flor, other than in January 2012 he knowingly possessed images of child pornography videos on his cellphone. He will have to forfeit the cellphone.

If Flor breaches the plea agreement, including appealing or attacking the sentence, the U.S. Attorney’s office retains the right to prosecute him.

He is expected to formally enter the guilty plea in federal court in Billings on Oct. 18.

Flor, 34, and his parents, all of whom lived in Miles City, were part of the Helena-based Montana Cannabis LLC, which sold and distributed medical marijuana throughout Montana. His 68-year-old father, Richard Flor, was sentenced to five years in prison but died while in custody due to medical complications. His mother, Sherry Flor, 54, received a two-year sentence.