Ronan Keating has said that he used therapy and self-help books following his marriage breakdown.
The Boyzone singer revealed that he was in a bad place after his split from Yvonne Connolly in 2011, and was haunted by how much he had hurt his family.
He said in an interview with Closer magazine: "I'm back in a good head space, which is great because it gets scary when you lose it. I don't want to make mistakes like I've made again, so I'm very cautious. But therapy, reading books like The Power of Now and work have really helped me live in the present.
"I'm very comfortable in my skin and that's a nice place to be. When you've made big mistakes [and] then realise, 'What the f*** was I doing?', there is a lot of self-loathing for the hurt you've caused."
The star, who is father to 14-year-old Jack, 12-year-old Missy and eight-year-old Ali, said that their children's happiness is their top priority.
He added: "The most important thing is that the kids are happy. That's what we both work at."
Keating is currently based in Sydney, Australia where he is on the judging panel of the Australian version of The X Factor.