Matt Milano won’t be hitting free agency after all.

The Bills announced they signed their star linebacker to a new 4-year contract on Thursday. The team did not release details of the agreement.

According to ESPN’s Adam Schefter, Milano agreed to a contract worth $44 million in total with $24 million guaranteed. For comparison, Bucs linebacker Lavonte David signed a two-year, $25 million dollar extension earlier this week.

Buffalo Kickoff Live analyst and WGR (Buffalo) radio reporter Sal Capaccio tweeted some of the details of the contract. They include a signing bonus worth $7 million and a base salary of $5.3 million in year one. That would make Milano’s 2021 cap hit an affordable $7 million.

The move comes as a bit of a surprise. Bills GM Brandon Beane had said Milano earned the right to test the waters of free agency. Instead, Milano will remain in Buffalo the next four seasons.