FOXBOROUGH, Mass. — Brian Hoyer is back with the New England Patriots less than a day after being released by the San Francisco 49ers.

The Patriots announced Wednesday that Hoyer had signed a deal with the team but did not disclose terms. League sources told ESPN that the veteran quarterback agreed to a three-year contract.

The deal is worth a total of $4.41 million, with Hoyer set to earn $476,000 in 2017, $915,000 in 2018 and a base salary of $2.85 million ($1.5 million guaranteed with a $200,000 roster bonus) in 2019, a source told ESPN’s Field Yates.

Click here to read the full article from ESPN.