Kevin Federline on Friday agreed to give ex-wife Britney Spears visitation rights with their two young sons, nearly two months after the troubled pop star last saw them, his representatives said.

Federline attorney Mark Vincent Kaplan said in a statement the former couple have agreed to a modification of a court order that had stripped Spears of her visitation rights. The statement did not elaborate.

Elliot Mintz, a spokesman for Kaplan and Federline, credited the development to Spears' father, James Spears, who came to Los Angeles earlier this month to help his daughter. Mintz said James Spears would be present during visitations, but he didn't provide more details.