OWINGS MILLS, Md. -- The Baltimore Ravens officially announced Gary Kubiak as their offensive coordinator on Monday, pulling a reverse late in their search.

After reportedly being down to two finalists this past weekend, the Ravens changed direction and went with Kubiak, who began talking with the team only a few days ago. Kubiak becomes the Ravens' third offensive coordinator in the past 13 months and the third in coach John Harbaugh's tenure.

"It was a great process. It may have taken us back to where, in the beginning, you might assume we started," Harbaugh said at Monday's news conference. "In the end, this is the way it worked, and we have the best guy."

Kubiak was the coach of the Houston Texans for nearly eight seasons, leading them to the playoffs in 2011 and 2012. The offense ranked in the top 10 in four of the past six years.

The Texans, who finished 2-14 this season, fired Kubiak in early December.

"This is the best day I've had in two months," Kubiak said. "It gives me a chance to be part of a championship organization."

Gary Kubiak was fired as Texans coach in December amid the worst losing streak in franchise history. Troy Taormina/USA TODAY Sports

The Ravens estimated that Harbaugh spoke to 15 candidates during the two-week search. It was reported this weekend that the Ravens would choose between former Washington Redskins offensive coordinator Kyle Shanahan and Ravens wide receivers coach Jim Hostler.

But Harbaugh met with Kubiak for dinner on Sunday, saying it was at that time he thought it would be a good fit.

"In your mind, you always keep list of the guys that give you the most trouble as coaches," Harbaugh said. "With this staff, what they've done offensively, has been kind of a pain in our rear."

Kubiak, 52, said there are no concerns about his health. He suffered a transient ischemic attack, or "mini-stroke," on Nov. 3 while walking off the field at halftime of a loss against Indianapolis.

According to Kubiak, he has resumed working out.

"I came out of it fine. I was my old self at the end of the season," Kubiak said. "I feel great. Looking forward to getting up very early in the morning and going to work again. My wife is tired of me being around the house."