A Hudson Valley man pleaded guilty to killing another man who was with his estranged wife.

Prior to the completion of jury selection, Earl Edwards Jr. of Saugerties pleaded guilty to second-degree murder, in Ulster County Court.

Edwards admitted that he broke into the Village of Saugerties home of his estranged wife and stabbed 40-year-old Rameen Perry in the heart around 3:20 a.m. on May 26, 2016.

Immediately after killing Perry, Edwards fled to New York City and purchased a train ticket to South Carolina. Edwards was intercepted in Washington D.C. by members of the Amtrak Police Department and extradited back to Ulster County.

The Office of the Medical Examiner ruled the death a homicide and determined the cause of death to be the result of a perforation of the heart due to a stab wound to the chest.

Edwards faces 15 to 25 years to life in prison when sentenced on a future date.