In a surprising turn of events, the San Francisco 49ers and veteran placekicker Robbie Gould have come to an agreement.

After placing the team's franchise tag on Gould earlier in the offseason, it initially did not appear as though San Francisco would ultimately be able to retain the seasoned special teamer while a trade to a different organization seemed much more likely. However, the two sides not only came to an agreement but managed to do so ahead of Monday afternoon's deadline en route to coming to terms on a two-year, $10.5 million deal.

As a result of the newly inked pact, 49ers general manager John Lynch seems quite happy with the outcome.

“Over the years, Robbie has established himself as one of the best at his position in the NFL, which is precisely why we were so committed to working out a new contract with him,” Lynch recently said, via the team's official website. “I would like to thank everyone who worked so hard to make this deal come to fruition. We are very happy to start off the year on the right foot with this agreement in place so that Robbie can get back with his teammates and focus on making the most out of the upcoming season.”

The 49ers do play in the always dangerous NFC West division alongside both the Los Angeles Rams and Seattle Seahawks, which means that San Francisco can use all the help they can get ahead of the 2019-20 campaign — Gould's foot included.