LOCKPORT – Andrew K. Peyatt of Bridgeport, W. Va., a former Lockport resident, accepted a plea bargain Tuesday for three sex offenses over a 17-year period. The deal limits his prison term to 15 years, with as many as 15 years of post-release supervision.

Niagara County Judge Sara Sheldon Farkas will make the sentence official April 1 for Peyatt, 56, who pleaded guilty to a reduced charge of attempted first-degree course of sexual conduct against a child for a series of incidents with a girl under age 11 in Lockport between Aug. 1, 1996 and July 28, 1997.

He also admitted to attempted first-degree criminal sexual act for forcible sex with a woman during a visit to Lockport in the summer of 2012, and to attempted dissemination of indecent material to a minor for emailing a naked photo to an underage girl in April 2013.

Peyatt, who is being held without bail, said he has lived in West Virginia for the past 27 years.