A jury has determined that Katy Perry, her producers and her label must pay Christian rapper Flame (and his two co-writers) $2.78 million.

Flame accused Perry of copying the riff in his 2008 song “Joyful Noise” for her 2014 mega-hit, “Dark Horse.” The case has been in the courts for nearly five years.

According to the Associated Press, Perry herself will only have to pay $550,000 with most of the money being paid by her record label. Perry and her teamed claimed they had never heard the song before the lawsuit.

“Joyful Noise” featured a collaboration with Lecrae and was featured on Flame’s Grammy-nominated album Our World: Redeemed.