CORPUS CHRISTI, Texas (CBS) — A man in Texas found himself surrounded by a lot of money, but it wasn’t as enjoyable as it sounds.

Police in Corpus Christi say a contractor was called to a bank to fix a lock on the door for the ATM room when he accidentally locked himself inside.

Making matters worse, he didn’t have his phone on him. The only way he could communicate was by slipping notes to customers through the ATM machine.

fd4069f75dd04a3280c611f578fece45 Contractor Accidentally Locks Himself Inside ATM Machine

“He can’t get out, he can’t call nobody because his phone was in his truck,” said Corpus Christi Police Officer Richard Olden. “Sure enough, we can hear a little voice coming from the machine.”

Police say the contractor was trapped inside the ATM for about two hours before he was finally rescued.

Watch & Listen LIVE