Former Two And A Half Men star Charlie Sheen has gone before a Los Angeles judge in a bid to seek custody of his twin sons with estranged wife Brooke Mueller.
Sheen and Mueller, who also attended the closed hearing, finalised their divorce months ago but it does not become official until May 2.
Mueller had reportedly checked into rehab over recent days but appeared in court.
Los Angeles Superior Court Judge Hank Goldberg sealed the hearing at the request of her lawyer, saying it was "in the best interest of the children" because of "questions of abuse and other inflammatory and emotional issues".
Sheen arrived in court wearing a black suit, glasses and an orange tie.
As the public filed out of the courtroom, Sheen gave a fist bump to a reporter in the audience.
One of his girlfriends, whom he describes as 'goddesses', accompanied him to court and sat on a bench outside the courtroom.
The actor and his estranged wife have had several disputes in recent months, with Mueller accusing Sheen of threatening her with a pen knife.
The couple reached an agreement and Mueller dropped her request for a restraining order.
Sheen's lawyer, Mark Gross, said in court it was unfair that Mueller's legal representatives had not sought to seal the restraining order, which detailed numerous alleged threats Sheen had made.