Ride-sharing service Lyft has agreed to adapt to regulations set by the Taxi & Limousine Comission. A Manhattan judge presided over the agreement yesterday, threatening to issue a temporary restraining order keeping the embattled service out of the city if the regulations were not met by July 25th.

Lyft's had a tough time getting on the road here. Though the company apparently believed it could skirt New York's strict laws regulating cabs and livery drivers thanks to its "donation" method of payment, both the TLC and state officials have filed legal action against it, forcing Lyft to postpone its July 14th launch indefinitely. Now, Lyft says it will comply with the TLC, allowing the commission to test its app, and approve the contracts it's signing with dispatchers and other tracking companies. In addition, Lyft has been instructed to provide state officials with insurance information.

"If these things aren’t done I’m prepared to issue a temporary restraining order," Judge Kathryn Freed said yesterday. Not that cab and livery officials are necessarily placated by the ruling: "This undermines the work that our industry has done for decades, by not complying with the law. This is an insult to us to say you can come in and work and ... make your own rules,” Cira Angeles of the Livery Based Owners Association told the Daily News; a city attorney complained to the paper that Lyft was "simply a gypsy cab service dressed up with a fancy pink mustache."

Lyft has until Friday to comply with the agreement.