BANGOR, Maine — The man who spent nearly 24 hours lost in the woods of Piscataquis County earlier this week only to be arrested on a warrant for unpaid fines when he emerged was released from jail Thursday after setting up a new payment schedule with the judge.

Michael W. Chapman, 40, of Newport owes nearly $1,200 in fines in Somerset County Superior Court in Skowhegan. He was supposed to be paying $25 per month toward the fines, District Court Judge Patrick Ende said Thursday when Chapman appeared before him by video conference from the Piscataquis County Jail in Dover-Foxcroft where he was taken after his arrest.

Information about the underlying charge and when the warrant was issued was not available by telephone from the clerk’s office in Skowhegan.

Ende gave Chapman $150 in credit for the two days he spent in jail toward the fines that totaled $1,340 before his arrest.

Chapman agreed to begin paying $25 per month again in June.

He was part of a group of four involved in a smash-and-grab burglary at a Corinth store in 2012. Chapman was convicted by a jury in April 2013 of arson, burglary, aggravated criminal mischief and theft by unauthorized taking, and he was sentenced to 3½ years in prison with all but two years suspended. He also was ordered to pay $1,500 in restitution for his role in the break-in. He was released in June 2014.

Chapman and his girlfriend, Kelli McFarlin, 38, of Newport went on a Memorial Day weekend camping trip near Little Wilson Falls with six other people, according to a previously published report. The eight campers were packing up to leave about noon Monday when Chapman and McFarlin decided to separate from the group. They took a side trail and got lost.

They were found 24 hours later, and Chapman was arrested on the outstanding warrant.

Nok-Noi Ricker contributed to this report.