LOCKPORT – A Level 2 sex offender pleaded guilty in Niagara County Court Tuesday to failing to register a change of address and possession of powdered cocaine.

Jason M. Klinger, 37, of Hewitt Parkway, Lewiston, was promised a sentence of no more than 2 1/2 years in state prison when he returns before County Judge Sara Sheldon Farkas May 7. She could have given him up to 6 1/2 years. Also as part of the plea deal, a probation violation on Klinger’s previous conviction was dismissed.

He was living on 15th Street in Niagara Falls when a probation officer found him in possession of 760 milligrams of cocaine during a March 9 home visit. Klinger failed to inform the state of his move to Lewiston in September, as required by law.

Klinger went on the sex offender registry after pleading guilty in 2011 to a reduced charge of attempting to possess child pornography. He was placed on six years’ probation at the time.