WICHITA, Kan. (AP) — A federal judge has ordered a convicted child sex predator to pay restitution to the 9-year-old Kansas girl he used to produce pornography.

A court filing on Tuesday modified the 260-year-prison sentence handed down in May for 50-year-old Philip Andra Grigsby, of Marquette.

U.S. District Judge J. Thomas Marten amended his sentence to include nearly $140,000 in restitution. The figure includes more than $126,000 for the girl and more than $13,000 for her mother.

Grigsby pleaded guilty last year to sexually exploiting a child, possessing child porn and illegally possessing a firearm as a convicted felon.

The investigation began after Grigsby sent emails containing child porn to an Australian man. Investigators were able to identify the victim after noticing the name of a middle school on a physical fitness certificate.