FARMINGTON, Maine — A Portland man has pleaded guilty to being the getaway driver in the theft of more than $5,000 worth of merchandise from a Walmart.

Brian Elliot pleaded guilty to a felony theft charge Wednesday in Franklin County Superior Court.

Prosecutors say last April two men went into the store, filled containers with computer games, DVDs and electronics, then left in a car driven by the 35-year-old Elliot. The car was stopped nearby and the items recovered.

A judge sentenced Elliot to serve a two-year deferred disposition, meaning if he complies with everything outlined in the agreement, he will be able to withdraw his plea to the felony theft and plead to a misdemeanor theft charge.

The Sun Journal reported he is also barred from going into any Walmart.