A 45-year-old South Thomaston man who police said was a significant cocaine supplier in the Midcoast is behind bars.

John Wall was arrested the afternoon of Aug. 10 while hiding in a house in Monmouth and was charged with Class A trafficking in cocaine and Class B unlawful trafficking in cocaine, and violation of probation.

A warrant for Wall’s arrest had been outstanding since January.

An affidavit filed by police in court said that Wall admitted to police in January that he had been selling cocaine for two to three months. He said his source of cocaine was a man from Manchester, N.H.

Wall was also allegedly the supplier for other local residents who have previously been charged with cocaine trafficking. Two women said they sold cocaine for Wall and he paid them with cocaine and gasoline, according to the affidavit.

Information in the affidavit said Wall would go to New Hampshire every four to five days and return with an ounce of cocaine that he then distributed to other dealers who were also users. He would pay $1,100 to $1,300 for his cocaine, depending on the quality of the drug, according to the police report.

Wall has an extensive criminal history dating back nearly 30 years that includes burglary and possession of cocaine.

In unrelated drug cases, the Maine Drug Enforcement Agency issued a news release stating that David Libby, 40, of Rockland was arrested Aug. 3 for aggravated trafficking in Xanax and violation of probation.

Libby was arrested after an investigation by the MDEA and Rockland police into Libby selling Xanax that was not prescribed to him in the Rockland area, according to the MDEA. Agents were able to purchase the pills directly from him and his fiancée, Charlotte Shellman, 36, of Rockland. Shellman also sold agents Ritalin that was not prescribed to her or Libby, according to police. Libby has a prior felony trafficking conviction and violation of probation.

Shellman was issued a summons Aug. 9 for aggravated trafficking in Ritalin and aggravated trafficking in Xanax. Shellman was given summonses as she was already in custody at the Knox County Jail on unrelated theft charges.

Wall, Libby and Shellman all remained at the Knox County Jail the afternoon of Aug. 17.