It’s been about two weeks since singer, songwriter, actress Demi Lovato was rushed to the hospital due to an alleged overdose. While it’s unclear which substance threatened the life of the 25-year-old star,  a 9-1-1 call was placed after an all-night party and after several weeks of reports claiming she was struggling with drugs. Initially, some raised concerns about the possibility of the Camp Rock actress suffering some degree of brain damage, but fortunately, Lovato was reported to be in stable condition. And indeed, the “Sober” singer was discharged from the hospital on Saturday and was flown to a leading rehab facility outside the state of California. “This approach was based on what worked for Demi in the past when she lived in an in-patient rehabilitation center over a year,” a source said.

Lovato released a statement on the topic of her ordeal thanking her fans through Instagram. She wrote:

“I have always been transparent about my journey with addiction. What I’ve learned is that this illness is not something that disappears or fades with time. It is something I must continue to overcome and have not done yet. I want to thank God for keeping me alive and well. To my fans, I am forever grateful for all of your love and support throughout this past week and beyond. Your positive thoughts and prayers have helped me navigate through this difficult time. I want to thank my family, my team, and the staff at Cedars-Sinai who have been by my side this entire time. Without them, I wouldn’t be here writing this letter to all of you. I now need time to heal and focus on my sobriety and road to recovery. The love you have all shown me will never be forgotten and I look forward to the day where I can say I came out on the other side. I will keep fighting.”

In the past, Demi has been open about her struggles with bipolar disorder, addiction, eating disorders, and self-harm. In 2013, the “Confident” singer released a book entitled Staying Strong: 365 Days a Year as well as a YouTube documentary exploring aspects of her personal life and career called Demi Lovato: Simply Complicated in 2017. And things seemed promising for Demi in March of 2017 when she celebrated her five-year anniversary of sobriety. But within the course of a year, she released the song “Sober” revealing she’d relapsed.

Lovato’s team is willing to do whatever it takes to protect the star during her time of vulnerability. For instance, they are “weeding out” toxic influences from her life whether it be negative family members, unhealthy friendships, or drug users. The goal is to give her the best chances of success during her time in rehab as well as when she’s ready to move on with her life.

According to reports, Demi’s loved ones saw her through two week’s worth of detoxing in the hospital including extreme nausea and high fever related to the overdose–and towards the end, they were relieved to see Demi decide to pursue further steps to address her addiction. A source said that Demi was alarmed to discover just how quickly her addiction came to dominate her life, saying, “She regrets letting it get this far because she has a tremendous amount of support. She also realizes her first instinct as an addict was to pull away and isolate herself from her family and true friends. She feels confused and overwhelmed because she thought her life was going well until it all came crashing down so fast. She never realized how bad it had become.”

But the source acknowledged that eventually, once Lovato is ready to leave rehab, she’ll be faced with a lot of hard decisions. “Demi’s a grown adult, so there’s really nothing her loved ones can do to force her to do anything at this point. Ultimately, it’s going to be up to her to decide who she chooses to keep in her life going forward,” the person said.

If you or someone you know is currently battling substance abuse, the Substance Abuse and Mental Health Services Administration offers support through its 24-hour treatment-referral hotline at 1-800-662-HELP (4357). Also, gives confidential assistance to those in need. In case of a medical emergency, call 9-1-1.