After getting rejected at the last minute, the Indianapolis Colts have found a new head coach.

On Sunday, the Colts announced that their next coach would be the Super Bowl-winning offensive coordinator, Frank Reich of the Philadelphia Eagles.

“Frank is a leader of men who will demand excellence from our players on and off the field,” Colts general manager Chris Ballard said in a statement. “I look forward to working with Frank to deliver a championship-caliber team to the city of Indianapolis.”

Reich, 56, agreed to a five-year deal, a source informed of the talks between the sides told NFL.com, which first reported the hiring.

He emerged as the favorite for the job after meeting with Ballard on Friday. The Colts also interviewed New Orleans Saints assistant head coach-tight ends Dan Campbell and Buffalo Bills defensive coordinator Leslie Frazier.

Reich, who didn’t call plays with the Eagles, began his coaching career as an offensive staff assistant with former Colts coach Jim Caldwell in 2008 after retiring from playing 10 years earlier. Reich was Peyton Manning‘s quarterback coach in 2009 and ’10 before coaching Reggie Wayne and the rest of the receivers in 2011.

The Colts are coming off a 4-12 season and have missed the playoffs in each of the past three years. The Colts will have about $85 million in salary-cap space and the No. 3 overall pick in the April draft.

Reich is a quarterback guru. His hiring and a returning healthy Andrew Luck could mean instant success for the Colts in 2018.