(SportsNetwork.com) - The Buffalo Bills are reportedly set to name Rex Ryan their new head coach.

According to several reports on Sunday, the Bills will soon name Ryan their new head coach. He will remain in the state of New York after being let go by the New York Jets in late December.

The two sides are said to be finalizing a five-year deal that will give Ryan $5.5 million per season.

It's also being reported that 49ers offensive coordinator Greg Roman is expected to join Ryan in Buffalo, replacing current offensive coordinator Nathaniel Hackett.

Buffalo had interviewed 12 candidates for the position that was made vacant after Doug Marrone opted out of his contract on Dec. 31, and decided to go with Ryan, who was fired after guiding the Jets for six seasons.

Ryan parted ways with New York after the team posted a 4-12 mark, which included an eight-game losing streak, to finish last in the AFC East.

It was the worst record the Jets posted during Ryan's tenure with the club, which missed the playoffs for a fourth straight year. He finished his term with a 46-50 mark.

Led by a strong defense, the Bills notched a 9-7 record in 2014, their first winning season since 2004. However, they finished third in the AFC East and missed the playoffs for a 15th straight year.

The 50-year-old Marrone reportedly asked for a contract extension from the new ownership and when they declined, he chose to leave thanks to a three-day opt- out clause. He will still get paid the $4 million he was due from the Bills in 2015.

Marrone went 15-17 in his two seasons with Buffalo.