BANGOR, Maine — A Canadian man awaiting trial on possession of Ecstasy in Somerset County pleaded guilty Thursday in U.S. District Court to making a fraudulent statement to customs officials when he crossed the border in May at Houlton.

Terrance Albert Walker, 48, of Truro, Nova Scotia, also is charged with importing morphine. In a plea agreement with prosecutors, that charge is expected to be dropped after Walker is sentenced.

As part of the plea agreement, Walker would not appeal his sentence as long as it does not exceed six months. He also agreed to relinquish his claim to a portion of the cash that officials seized at the border.

A sentencing date on the federal charge has not been set.

Walker has been held without bail at Somerset County Jail awaiting trial on a February charge of unlawful possession of 7½ pills of Ecstasy in that county, according to court documents. He also has been charged in Aroostook County with violating conditions of his release in the Somerset County case and with misdemeanor possession of illegal drugs.

That case is pending, but if convicted, Walker faces up to a year in jail and a $2,000 fine.

In similar cases, defendants facing state and federal drug charges have been sentenced first on the federal charges, then sentenced in state court to sentences concurrent with the federal sentence.

Walker and a female companion were interviewed on May 7 when they entered Maine in a white Ford panel van with $5,600 in U.S. currency. He has agreed “not to express interest” in $1,000 of that money.

Walker initially told border-crossing officials that they were on a buying trip for his companion’s antique business in Truro. According to court documents, he later said that they were headed to Skowhegan because he had a court date.

Customs and Border Protection officers allegedly found prescription pill bottles that did not belong to either Walker or the woman in luggage in their van. The pills contained morphine, according to court documents.

Walker faced up 20 years in prison and a fine of up to $1 million on the federal charge of importing morphine. He faces substantially less time on the state charges.

After completing his sentence, Walker is expected to be deported and banned from re-entering the U.S.