Actor Matthew Perry, known from the cult series “Friends,” has died as a result of the drug ketamine, according to authorities. Perry died from the “acute effects of ketamine,” the Los Angeles coroner’s office said Friday. Other factors in the actor’s death at the end of October included the effects of a drug used to treat opioid addiction, coronary artery disease and drowning, the authority said.

The medical examiner’s office described the circumstances of Perry’s death as an “accident.” Ketamine is often used by doctors as an anesthetic. The substance is also used as a drug.

Perry was found dead in the hot tub of his home in Los Angeles at the end of October at the age of 54. In the 1990s, he became famous for his role as the sarcastic joker Chandler Bing in the globally popular television series “Friends”.

In his autobiography published last year, Perry reported that he had struggled with drug and alcohol addiction for years. He wrote that he spent more than $9 million on a total of 65 stays in rehabs.