T-Mobile US Inc. and Sprint Corp. agreed to new terms for their pending merger that take account of the slide in Sprint shares since the transaction was first agreed, putting the industry-altering deal a step closer to completion.

T-Mobile owners will get roughly 11 shares of Sprint for each of their stock, the companies said Thursday. That’s an increase from a ratio of 9.75 previously and is more favorable for T-Mobile’s German owner Deutsche Telekom AG.

The equity value of the amended deal is about $37 billion compared with the original agreement of $26.5 billion, according to Bloomberg Intelligence analyst Erhan Gurses. The higher valuation partly reflects the 62% gain in T-Mobile shares since the all-stock transaction was announced almost two years ago, despite the deterioration in Sprint’s business.