The Harrisburg man who reportedly built a pipe bomb as part of an ill-fated plan to kill his wife's lover has pleaded guilty to felony charges.

Frederick Rice, 53, was arrested after Ferguson Township police received reports that a pipe bomb was sitting in an SUV in the Piney Ridge development in Pine Grove Mills last August.

According to a news release from the Centre County District Attorney's office, when police arrived on scene, Rice told them that he had constructed a pipe bomb and detonator, both of which were sitting in his vehicle. Rice reportedly told police that he made the gunpowder-filled device out of anger because his wife was having an affair. He also reportedly informed police that he planned to attach the bomb to his wife's lover's vehicle and detonate it once that person got in.

The Penn State University and Pennsylvania State Police bomb squads were called in. They secured the device after evacuating homes in the immediate area. Members of the bomb squad said it was the largest pipe bomb they ever had ever encountered.

Rice pleaded guilty to the felony manufacturing of weapons of mass destruction and multiple misdemeanor charges of endangering another person. He will be sentenced on Jan. 26, 2015.

A video from the August incident can be seen below:

Popular Stories:

Erickson: NCAA 'Wanted Blood' After Sandusky Scandal

Police Warn Residents About Candy Laced with Prescription Drugs

NCAA Accuses Paterno Estate of Fighting Lawsuit in the Press

Judge Denies Request For Mediation Between Corman, NCAA

Penn State Trustees Clash Over NCAA Lawsuit

Emmert Tells CBS Sports NCAA Handled Penn State 'Very, Very Well'

Heirs Lose Court Battle Over Former College Heights Elementary School

Toys for Tots to Bring Joy to Hundreds of Children

Ranking the Top (and Bottom) 12 Penn State Quarterbacks to Transfer

Penn State Football: Quarterback Michael O'Connor Set To Transfer From Penn State

Penn State Basketball: Nittany Lions Hold Off Duquesne To Improve To 9-1

Penn State Hockey: Gadowsky Plays Down Early Season Success

Penn State Football: Conlan Inducted Into College Football Hall of Fame