Dez Bryant has agreed to a long-term deal with the Dallas Cowboys, as the two sides came to an agreement just before Wednesday’s deadline. The contract will pay the wide receiver $70 million over five years, reportedly giving him $45 million in guaranteed money.

Dallas placed the franchise tag on Bryant before the start of free agency, but the All-Pro announced that he wouldn’t show up at training camp without a lengthy contract. Turning down the option to play on a one-year deal worth $12.82 million, Bryant is now the second-highest paid NFL receiver behind Calvin Johnson of the Detroit Lions.

Bryant, 26, was one of the league’s top wide outs last season, and he’s proven to be an elite receiver over the past three years. He caught 88 passes for 1,320 yards and 16 touchdowns last year, totaling at least 1,200 yards and 12 touchdowns in each season since 2012.

Demaryius Thomas and the Denver Broncos found themselves in the same situation on Wednesday, and the two sides reached a similar agreement to Bryant and Dallas. Thomas, 27, has reportedly signed a nearly identical deal, making just $1.5 million less in guaranteed money the Bryant.