A former Bath resident pleaded guilty Thursday to transporting a minor with intent to engage in criminal sexual activity in connection with events that took place more than 20 years ago.

David Miller, 54, who now lives in Flushing, Michigan, entered the guilty plea in U.S. District Court in Portland.

According to court records, Miller lived in Bath and worked as a long-haul trucker in 1995 when he took a 13-year-old relative with him on interstate trips and had sex with the relative during those trips.

The relative reported the abuse two years ago, after seeing a picture on Facebook of Miller with a 5-year-old child sitting on his lap.

In October 2016, Miller was questioned and admitted to federal agents that he had sexually abused the relative on the trips in 1995, the U.S. Attorney’s Office in Portland said.

In 2003, Congress extended the statute of limitations for the charge to be as long as the victim was alive. Since the statute of limitations on Miller’s offense hadn’t expired by 2003, authorities were able to file charges against him in 2016.

He faces a sentence of 10 years to life in prison and a fine of up to $250,000. He will be sentenced at a later date.

The investigation was conducted by the Bath Police Department and the Federal Bureau of Investigation.