SAN FRANCISCO (AP) — A judge says an agreement will give consumers who bought nearly 600,000 Volkswagen vehicles rigged to cheat on emissions tests the option of having the automaker buy back the cars or fix them.

Senior U.S. District Judge Charles Breyer did not give details Thursday on how much car owners would be paid but said the deal between Volkswagen, the U.S. government and private lawyers would include “substantial compensation.”

READ MORE: Los Angeles Clippers Hold Off Lakers, 119-115

Breyer says the agreement will include a fund for corrective efforts over the excess pollution and that VW will be required to commit other money to promote green automotive technology.

READ MORE: Gaudreau, Tkachuk Lead Flames Over Ducks In Shootout

The owners and the U.S. Department of Justice sued the company after it acknowledged in September that it intentionally defeated emissions tests and put dirty vehicles on the road.

MORE NEWS: La Mirada Home Decorated Like 'National Lampoon's Christmas Vacation' Could Face Fines Over Display

(Copyright 2016 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.)