On Wednesday, a US District judge in Detroit sentenced Oliver Schmidt, a former Volkswagen executive, to seven years in prison for his role in the Volkswagen diesel emissions scandal of 2015. Schmidt was also ordered to pay a criminal penalty of $400,000, according to a US Department of Justice (DOJ) press release. The prison term and the fine together represent the maximum sentence that Schmidt could have received under the plea deal he signed in August.

Schmidt, a German citizen who lived in Detroit as an emissions compliance executive for VW, was arrested in Miami on vacation last January . In August, he pleaded guilty to conspiracy and to making a false statement under the Clean Air Act. Schmidt’s plea deal stated that the former executive could face up to seven years in prison and between $40,000 and $400,000 in fines.

Last week, Schmidt’s attorneys made a last-minute bid requesting a lighter sentence for Schmidt: 40 months of supervised release and a $100,000 fine. Schmidt also wrote a letter to the judge, which surfaced over the weekend, in which the executive said he felt “misused” by his own company and claimed that higher-ranked VW executives coached him on a script to help him lie to a California Air Resources Board (CARB) official.

Instead, Schmidt was sentenced to the maximum penalties outlined in the plea deal. Only one other VW employee has been sentenced in connection with the emissions scandal: former engineer James Liang, who received 40 months in prison and two years of supervised release as the result of his plea deal. Although six other VW Group executives have been indicted, none is in US custody.

Volkswagen Group, the umbrella company that owns VW, Audi, and Porsche, has paid about $30 billion in fines and buyback costs since regulators discovered it was including emissions-cheating software on its diesel vehicles. The software allowed the cars to pass emissions tests under lab conditions, while disabling the emissions-control software under real-world driving conditions so the cars would have better performance. As VW Group rolled out its massive “clean diesel” marketing campaign appealing to environmentally conscious car buyers, those same cars were actually emitting nitrogen oxide (NO x ) many times in excess of the legal limit.

Although the initial stages of the scheme to goose emissions numbers started as early as 2004 at Audi, Schmidt and his lawyers assert that the executive only found out about the software in the summer of 2015, a few months before the Environmental Protection Agency (EPA) made public VW Group’s violation. That summer, A CARB official asked to speak to Schmidt about a discrepancy between VW’s emissions numbers from lab testing and real-world emissions numbers from researchers at West Virginia University. According to the January 2017 complaint against Schmidt, the executive “offered technical reasons and excuses such as ‘irregularities’ or ‘abnormalities’ for the discrepancy without revealing the fundamental reason for the higher NO x measurements on the road: software intentionally installed in VW vehicles so the vehicles could detect and evade emissions testing.”

According to a DOJ press release published today, “Schmidt knew that VW’s diesel vehicles were not compliant with US standards and regulations and that these representations made to domestic customers were false.”

Per The New York Times, US District Judge Sean Cox told Schmidt, “You are a key conspirator responsible for the cover-up in the United States of a massive fraud perpetuated on the American consumer,” at the end of a two-hour-long hearing.