PORTLAND, Maine — A Massachusetts man accused of selling heroin in men’s bathrooms in Kittery made his first appearance Friday in U.S. District Court.

Yeison Saldana, 22, of Haverhill, Mass., is charged with three counts of distribution of a substance containing heroin, according to court documents.

He did not enter pleas to the charges.

Saldana was arrested Thursday, according to information filed in the court’s Electronic Case Filing system. Information about his arrest was not available Saturday.

U.S. Magistrate Judge John H. Rich III ordered that Saldana temporarily be held without bail. A detention hearing is scheduled for Wednesday to determine if Saldana is eligible to be released.

The investigation by the U.S. Drug Enforcement Administration that led to Saldana’s arrest began in January, according to court documents. An undercover agent arranged to purchase heroin from Saldana on Feb. 20, March 1 and 21 for between $800 and $850.

All three buys took place in public men’s bathrooms at different locations in Kittery, according to court documents. The first two exchanges allegedly occurred in bathrooms in outlet stores, and the third took place at the northbound rest area on Interstate 95.

If convicted, Saldana faces up to 20 years in federal prison and a fine of up to $1 million.