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.
Charlie and Brooke, who also attended the closed hearing, finalised their divorce months ago but it does not become official until May 2.
Brooke 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".
Charlie arrived in court wearing a black suit, glasses and an orange tie.
As the public filed out of the courtroom, the TV star 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 Brooke accusing him of threatening her with a pen knife.
The couple reached an agreement and Mueller dropped her request for a restraining order.
Charlie's lawyer, Mark Gross, said in court it was unfair that Brooke's legal representatives had not sought to seal the restraining order, which detailed numerous alleged threats.