TAMPA (WFLA) — Graham Clark, the alleged “mastermind” behind the major Twitter hack last July, pleaded guilty to the incident Tuesday.

Clark, 18, was facing 30 charges of electronic and computer fraud for the July 15 intrusion into data of multiple prominent Twitter users, including former Pres. Barack Obama, Bill Gates, Elon Musk, and Kim Kardashian.

Prosecutors said Clark, a student at Gaither High School, hacked multiple celebrity and company Twitter accounts, which he used to get people around the world to send him cryptocurrency. He’s reported to had made more than $100,000 in a matter of hours.

Clark was arrested days later at his home in the Northdale area of Hillsborough County.

Clark went before a judge Tuesday where he pleaded guilty to the charges, earning him a three-year sentence, which he will serve in a juvenile facility, followed by three years probation.

Per the terms of Clark’s probation, he’s not allowed to use electronics without permission, must provide his supervisors unlimited access to all of his electronics, and must agree to unannounced and unlimited searches of his house, workplace, vehicles and more.

Clark was sentenced as a youthful offender, but if he violates any terms of his probation, he will be subject to the mandatory minimum incarceration of 10 years that an adult would face for the crimes he committed.

Youthful Offender status is available only once in a person’s life. It means Clark’s jail time will be served in a juvenile facility, and he will receive education and transition services to prepare him for life after prison.