FARGO, N.D. (AP) - A Canadian man accused of masterminding one of the largest high-tech bank robberies in U.S. history was sentenced to nearly 18 years in prison Monday following a years-long investigation into fake debt collection agencies that prosecutors say stole the identities of about 38,000 people. Adekunle Adetiloye was accused of organizing a scheme to open nearly 600 fraudulent bank accounts and bilk 22 major banks, potentially costing credit card firms and banks up to $5 million. Assistant U.S. Attorney Nick Chase in North Dakota, where the case was handled, said the 40-year-old had an "insatiable hunger for other people's money." But prosecutors and the judge believed he was central to the scheme. Investigators said Adetiloye incorporated two different companies in Delaware - Syspac Financial Services and Commet Consultant Inc. - that claimed to be debt collection companies. He gained access to commercial data providers, including large-scale outfits LexisNexis and ChoicePoint that only allow access to law enforcement, financial services and debt collection companies. With access to those data providers, Adetiloye and others obtained the personal identification information to about 38,000 people, most of whom were medical professionals, and used that information to open credit card, debit and checking accounts, prosecutors said. Those data providers said it was only the second such breach of that scale. "Characterizing this fraud scheme as massive, if anything, is an understatement," Chase said in court documents. Investigators' interest in Adetiloye, a native of Nigeria, was piqued after figuring out he was unemployed and receiving welfare yet living lavishly, complete with a Range Rover vehicle, extended trips to England and an expensive condominium. Then there were two credit cards tucked away in his wallet the each bore different names - Donald Douglas and Vincent Andriole - that seemed to confirm suspicions that he was up to something nefarious. The complexity of the scheme - which took five years to investigate and litigate - was highlighted in a sentencing phase that has lasted nearly a year and included numerous hearings and briefings, and some 12,000 pages of court documents. U.S. District Judge Ralph Erickson handed down a 214-month prison term and scheduled a Feb. 15 hearing to discuss returning nearly $1.5 million in losses to credit card companies and banks. The judge has said losses may have been as much as $5 million. Defense attorney Richard Henderson had asked for a sentence of fewer than 16 years for his client, who pleaded guilty to mail fraud charges. Henderson said any prison time is more difficult than it would be for American citizens because he has no family in the United States. No decision has been made about whether he plans to appeal, said Neil Fulton, lead federal public defender for North Dakota and South Dakota. "The sentence imposed today should send a strong message to those who would seek to scam the citizens and businesses of North Dakota and the United States," U.S. Attorney Timothy Purdon said in a statement released Monday. We take the growing problem of foreign financial fraud seriously here and seeking justice for the victims of such crimes is a priority for our office. Greg Krier, lead credit card fraud investigator for U.S. Bank, testified during the sentencing phase of the case that it was the most complex case he had ever seen. Investigators initially said the operation accessed information of nearly 16,000 people, about 500 of whom had their identities stolen for the purpose of obtaining credit cards. But further investigation showed that the scheme actually accessed personal information to some 38,000 people. The government said Adetiloye went so far as to mask his handwriting after a judge ordered a test of his calligraphy. The judge calculated losses to banks at about $1.5 million, but said it could have been as high as $5 million if credit limits had been maxed out.