ALBANY, N.Y. (AP) — Cable company Charter Communications has agreed to a $174.2 million settlement with the New York attorney general’s office for defrauding customers with slower-than-promised internet speeds.

Under the settlement announced Tuesday, Charter agreed to pay back $62.5 million to more than 700,000 New York customers and provide 2.2 million of its active customers $110 million worth of streaming services and premium channels for free.

Attorney General Barbara Underwood said it’s believed to be the largest refund by an internet provider in U.S. history.

A Charter spokeswoman says the state’s lawsuit stemmed from advertising practices by Time Warner Cable prior to its 2016 merger with Charter.

The company says it will contact eligible customers about compensation they will receive under the settlement.