Stephen Walter, one of three suspects charged with distribution of fentanyl resulting in the death of rapper Mac Miller, accepted a guilty plea that could still put him behind bars for 20 years.

Two previously convicted felons, Cameron James Pettit, 28, and Ryan Reavis, 36, aided drug supplier Stephen Walter, 46, and were equally indicted for distribution leading to Mac Miller’s overdose.

Court documents revealed, according to TMZ, that Stephen Walter was the distributor behind Cameron James Pettit, the drug dealer who handed Mac Miller the deadly Percocet’s laced with fentanyl.

In text messages acquired by authorities, Mac Miller, whose real name was Malcolm James McCormick, spoke quite frankly with Cameron James Pettit. He asked him at the time for Adderall, which McCormick said he couldn’t supply, as well as Percocet’s, Xanax, and cocaine.

“I’m pretty sad and also a little worried,” Pettit texted an unnamed friend after finding out Mac Miller’s death, court documents revealed. He then allegedly sent a link to a TMZ story about Demi Lovato’s drug dealer getting arrested, writing “This is what I’m afraid of … I feel really guilty … If I have to go to jail I hope to spend some time with you first.”

“I think I should probably not post anything … just to be smart,” Petit texted. “Most likely I will die in jail.”

The three were later picked up by the U.S. Attorney’s Office. According to TMZ, Stephen Walter was already on supervised release from a previous drug case, which put him in federal prison for 10 years.

“These defendants allegedly continued to sell narcotics after Mr. McCormick’s death with full knowledge of the risks their products posed to human life,” said U.S. attorney for the District of California Nick Hanna.

Prosecutors confirmed that by accepting the guilty plea, Walter was agreeing to knowledge that he supplied Pettit with oxycodone pills laced with fentanyl, which he accepted.

According to NBC News, the three men face potential life sentences, with Walter’s plea deal reducing the charge.

In a recent interview with Power 105.1 FM’s The Breakfast Club, rapper Young Thug spoke about how he recorded with Mac Miller the day before he died, calling it a “crazy” coincidence.

That song, later titled “Day Before,” was just released on Young Thug’s latest record, Punk. The album also features Juice WRLD, another young artist who similarly died to due to an accidental fentanyl overdose in 2020. Mac Miller’s death was two years prior, in 2018.

“I was with Mac the day before he died,” Young Thug said. “He was at my studio… The next day he died.”

“I think deep on that, because it’s like, is that a sign?” Young Thug, 30, remarked. “At some point you want to know. At some point it’s like, have you ever just wished God could really just talk to you?”

One of Mac Miller’s earlier mixtapes, Faces, was also repackaged and released this month, so fans could enjoy a wide-release for the once-free mixtape distributed online.

Thundercat, bassist for Kendrick Lamar, solo artist, and a good friend and collaborator of Mac Miller’s, told Vulture that he was the kind of person who “put his musicianship first.”

“When I started to dig into his music, I started to understand the type of person he was,” Thundercat said. “He felt freed up and open enough to let everybody in and not be scared or lose who he was.”

Mac Miller’s body was flown back to Pitssburgh, Pa. following his death, so that his family could bury him in his hometown. Fans held a public service in the city’s Blue Slide Park, which one of his earliest releases was named after.