PORTLAND — A New York City man who was caught with about 160 counterfeit credit cards has been sentenced in Maine to three years in prison.

Thirty-four-year-old Michael Barnes was sentenced Monday in U.S. District Court in Portland. Judge George Singal also ordered him to pay $8,687 in restitution.

Barnes pleaded guilty to credit card fraud in April. Prosecutors say he and two other people were stopped in a vehicle in 2011 and found to be in possession of the counterfeit cards, some of which had been used to make purchases at stores in South Portland and Scarborough.

Barnes’ sentence will run on top of a seven-year sentence that he’s already serving in New York for burglary and weapons possession.