After the release of additional television films and their soundtracks in 2010, Lovato's personal issues put her career on a hiatus and led to the discontinuation of Sonny with a Chance after a second season. She entered a treatment center in 2010 to seek help for addictions, an eating disorder, and self-harm. While there, she was diagnosed with bipolar disorder. Work on her third studio album, Unbroken (2011), continued after she completed treatment. The album addresses several of her difficulties. Its lead single, "Skyscraper", became Lovato's second top 10 entry in the US, while its second single, "Give Your Heart a Break", was certified triple platinum in the country. Lovato was a judge and mentor on the American version of The X Factor in 2012 and 2013. Her fourth album, Demi (2013), generated the single "Heart Attack", which became her third top 10 in the US. While promoting the project, Lovato released a book titled Staying Strong: 365 Days a Year (2013). She also returned to acting as a recurring character on Glee. Lovato's fifth album, Confident (2015), reached number two on the Billboard 200. "Sorry Not Sorry", the lead single from her sixth album, Tell Me You Love Me (2017), reached number 6 in the US, becoming her highest charting single in the country. Five of Lovato's albums have received a gold certification in the United States.