A 49-year-old Texas man pleaded guilty on Tuesday in U.S. District Court in Bangor, Maine to interstate stalking. 

According to the indictment and evidence introduced at the plea hearing, Donald Cain— formerly of Columbia, South Carolina—was married in August 2014 to a resident of Aroostook County. When they met, Cain was working in Calais, Maine, but soon relocated to the San Antonio, Texas area. His wife remained in Maine.

Court records say that between November 2014 and December 2015, the defendant used a telephone to call and send threatening text messages which caused substantial emotional distress to his wife.

U.S. Attorney Halsey B. Frank.announced on Thursday that Cain faces up to five years in prison and a $250,000 fine.

The investigation was conducted by the Houlton Police Department, the San Antonio, Texas Police Department, the Maine Computer Crimes Task Force and the FBI in Maine and South Carolina.