ALBANY, N.Y. — A Pittsfield man is facing federal charges for allegedly traveling to New York on Friday intending to have sex with a 14-year-old boy.

Bryan P. Krynicki, 56, allegedly exchanged text messages between Feb. 7 and April 29 with an undercover investigator who was posing as a boy, according to court documents. Many of the messages that Krynicki sent expressed a desire to engage in sexual acts with the boy.

He was arrested Friday when he drove to Nassau, N.Y., to meet the boy.

He was charged with traveling across state lines with the intent to engage in a sex act with a minor, according to the U.S. Attorney's Office.

The charge carries a maximum sentence of 30 years in prison, a fine of up to $250,000, and a term of supervised release of at least five years and up to life.

The case is being investigated by the FBI and its Child Exploitation Task Force, and is being prosecuted by Assistant United States Attorney Rachel Williams.