The World’s Longest Hockey Game is finally over, breaking a Guinness World Record and raising more than $800,000 for the Alberta Cancer Foundation.

After 10 straight days of hockey, 40 players at an outdoor rink in Sherwood Park, Alta., celebrated the new record with cheers and fireworks.

The participants had surpassed the 250th hour of the game, breaking the previous record of 246 hours and two minutes. It typically takes time for the Guinness Book of World Records to officially confirm a new record.

Participants in this game were hoping to raise $1 million for the Alberta Cancer Foundation. The money will go towards the purchase of a new PET-MRI machine for the Cross Cancer Institute in Edmonton.

As of Monday morning, more than $800,000 had been raised, Bobbi Wolbeck of the Alberta Cancer Foundation told CTV News Chanel.

Once it became clear that the record was broken, congratulatory messages poured in on social media from all parts of the country. Among them was a tweet from Prime Minister Stephen Harper.

Congrats to all participants of the #ACFWLHG for beating the @GWR for longest hockey game & raising money for a great cause! @albertacancer — Stephen Harper (@pmharper) February 17, 2015

Game organizer Brent Saik, who lost his father and wife to cancer, said participants are thrilled to be part of the game and raise money for life-saving medical equipment.