A TD Bank in Maine says a “code error” is to blame after a malfunctioning ATM spit out $37,000 to a customer.

Police in South Portland say a woman called them Thursday morning to say that a man was spending a long time at the ATM she was waiting to use. Officers found him stuffing cash into a shopping bag.

Bank officials say the money was returned, and no customer accounts were affected.

The bank does not wish to press charges.

Check out some of Fox News' OUTRAGEOUS stories:

Man Hit With $800 in Charges Over $40 Girl Scout Cookie Purchase

Young Mom Claims McDonald's Fired Her for Paying Firefighters' Tab

Farmer Faces $2M in Fines for Birthday Party on Her Property