The Houston Astros have agreed to a two-year, $17 million deal with right-handed reliever Hector Neris, a source confirmed to ESPN.

Neris, 32, started the 2021 season as the closer for the Phillies but lost the job in June. He finished the season with a 4-7 record with 12 saves and a 3.63 ERA in 74 games.