A federal judge in Wyoming handed down a nearly six-year prison sentence to an Australian man who says he robbed a Jackson bank so he could give money to the homeless.

The judge on Thursday sentenced 40-year-old Corey Donaldson to 70 months for bank robbery.

Donaldson claimed at sentencing that he was justified in robbing more than $140,000 from the US Bank in Jackson on New Year's Eve.

He has likened himself to Robin Hood and claims he gave much of the money to the homeless and staged the robbery to call attention to problems with the banking system.

Law enforcement officers arrested Donaldson in Utah and recovered more than $30,000 from him and from a room he rented in an upscale hotel.