Bob Odenkirk, the American actor, director and producer best known for playing Saul Goodman in the television show Breaking Bad and its spin-off Better Call Saul, has revealed that he suffered a heart attack earlier this week.

On Tuesday, the 58-year-old actor had collapsed on set when he was shooting for the sixth and final season of Better Call Saul in New Mexico and had to be rushed to the hospital.

Odenkirk took to Twitter on Friday and wrote “I had a small heart attack. But I’m going to be ok thanks to Rosa Estrada and the doctors who knew how to fix the blockage without surgery. Also, AMC and SONYs support and help throughout this has been next-level.”

He added that he is going to take a break to recover but will be back soon.

Expressing his gratitude for all the care and concern, he wrote, “To my family and friends who have surrounded me this week. And for the outpouring of love from everyone who expressed concern and care for me.  It’s overwhelming. But I feel the love and it means so much.”

Earlier on Friday, David Cross, the stand-up comedian, actor, director, and producer who formed a comedy duo with Odenkirk to make the HBO sketch comedy Mr Show, tweeted, “Just got off the phone with Bob and he’s doing great! Joking and japing and joshing. Both he and his family are overwhelmed with the outpouring of love and concern everyone has shown. You will be hearing from him soon.”

On Wednesday, the actor’s representative had confirmed in a statement that Odenkirk was in stable condition after experiencing “a heart-related incident.”

His son, Nate Odenkirk, had also said on social media that his father was “going to be okay.”

Better Call Saul is set in 2002, six years before the character’s debut in Breaking Bad, in 2009. It follows attorney Saul Goodman’s journey to become a successful lawyer. The show has earned Odenkirk four Primetime Emmy Award nominations in the Outstanding Lead Actor in a Drama Series category.

Both Breaking Bad and Better Call Saul premiered on AMC, and are among the most prized franchises of Sony Pictures Television.