A father of five children in three states was ordered Monday in U.S. District Court in Portland to pay more than $57,500 in back child support for his three children living in Maine, according to the U.S. attorney’s office.

Daniel Shertzer, 30, of Fitchburg, Massachusetts was sentenced to five years of probation in order to allow him time to pay the restitution.

Shertzer pleaded guilty in August to three counts of failure to pay child support for his Maine children, according to court documents. The Maine children are aged 9, 7 and 5.

The 9- and 5-year-olds have the same mother. The 7-year-old was born to another Maine woman.

The mother of the two children is owned nearly $46,800, while $8,017 is owed to the other Maine mother, according to court documents. An additional $2,717 is owed to the Maine Department of Health and Human Services for benefits it paid to the mothers.

Since his arrest in January, Shertzer, who is working for a box company in Massachusetts, has begun making payments for his children in Maine while on bail, according to court documents.

Shertzer also fathered two other children with a woman in Massachusetts and another in New Hampshire.

A judge in Massachusetts ordered he pay $250 a week toward support of that 3-year-old child, court documents said. When he did not make payments, the court garnished his wages.

The fifth child was born to a New Hampshire woman in April. No parental rights action has been taken in a court there but Shertzer has acknowledged he is the child’s father. Information about whether he is paying support toward that child was not included in court documents filed in Maine.

U.S. District Judge George Singal told Shertzer that if he did not live up to his parental obligations, Shertzer would go to prison, the U.S. attorney’s office said.

Shertzer’s attorney, Federal Defender J. Hilary Billings of Portland, declined to comment on the case, as is the practice of his office.