In a first-of-its-kind indictment, New York officials arrested a man on Wednesday for generating music using AI technology and then distributing it billions of times across streaming services to collect royalties.

Michael Smith, 52, a musician out of Cornelius, North Carolina was charged in a three-count indictment in the Southern District of New York, including wire fraud conspiracy, wire fraud and  money laundering conspiracy—each carrying a 20-year maximum prison sentence.