Robin Thicke has been ordered to keep his distance from his former wife, Paula Patton, after the latter accused the singer of emotionally abusing her and their son, according to Billboard.

Colin Leis, the Los Angeles Superior Court judge overseeing the former couple’s ongoing custody battle, also ordered 39-year-old singer to have only monitored visits with his 6-year-old son.

Patton, who had been married to Thicke from 2005 until March 2015, also accused the “Blurred Lines” singer of physically abusing her during the marriage. This prompted the judge to issue the restraining order.

Thicke was likewise said to have traumatized Patton and their son last week, when he demanded visitation and did not leave her mother’s house when asked.

According to her filing, Thicke appeared in the house of Patton’s mom on Jan. 19 as child services workers spoke with their son. The singer refused to leave, according to the documents, and when the child services workers left the house, Thicke allegedly demanded to see their child and banged on the door.

Thicke left them only after Patton’s mother contacted police, the filing read. The incident was “terrifying for our son,” Patton wrote in the document.

Larry Ginsberg, Thicke’s lawyer, challenged the restraining order in a court filing, citing a lack of basis for its issuance and describing the accusations as Patton’s retaliation for having been denied sole custody of their child earlier this month.  

In her sworn declaration, Patton claimed Thicke abused her during their marriage. She cited an incident in April 2013 in which her ex-husband allegedly kicked her after pushing her to the ground.

Patton also claimed that Thicke cheated on her numerous times and has had a problem with substance abuse.

This latest development in the custody between Thicke and Patton happened a few weeks after the singer’s father, actor Alan Thicke, died.