A West Virginia man who used his job as an ATM technician to gain access to cash inside the machines was sentenced to four months in prison and eight months of home confinement on Monday.

Authorities said John Nathaniel Watts, 34, of Martinsburg was working for Diebold Inc. on May 25, 2011, when he told employees at a SunTrust bank branch in a Bowie Safeway store that he was on the job. After he was give access to the branch’s ATM, authorities said, Watts took out more then $66,000 and left with the money in his tool bag.

He repeated the scheme that July at SunTrust ATMs in Safeway stores in La Plata and Waldorf, authorities said, stealing more than $20,000 and $26,000, respectively.

Watts pleaded guilty to three counts of theft in March, court records showed. According to the U.S. attorney’s office, he must spend four months in prison, eight months in home confinement and three years under supervised release and must pay back the money he stole.