Tesla has reached a settlement with the Environmental Protection Agency over hazardous waste violations that were discovered at the company’s factory in Fremont, California. Tesla has agreed to pay a $31,000 penalty, and, as part of the settlement, it will also buy $55,000 worth of emergency response equipment for the Fremont Fire Department.

In 2017, Tesla allowed hazardous waste to accumulate on site without a permit beyond the allowed 90 days, according to the settlement (seen below), a copy of which was provided to The Verge by the EPA. The EPA found Tesla failed to “promptly clean up flammable paint and or solvent mixtures,” left two 55-gallon containers of hazardous waste open with “no gasket or locking mechanism,” and violated air emission standards for three leaky transmission lines that the waste moved through.

Have information about the working conditions at one of Tesla’s factories? Email the author at sean.okane@theverge.com, or use SecureDrop or Signal to securely send messages and files to The Verge without revealing your identity.

The EPA found these violations during two “unannounced inspections” performed with the California Department of Toxic Substances Control (DTSC) and the Bay Area Air Quality Management District (BAAQMD) at Tesla’s Fremont factory in November and December of 2017. The agencies turned up multiple violations of the federal Resource Conservation and Recovery Act (RCRA), a set of regulations drawn up in 1976 that gives the agency “the authority to control hazardous waste from the ‘cradle-to-grave,’” according to the EPA’s website.

Tesla didn’t comply with the RCRA regulations in three ways, according to the EPA. The agency says Tesla: failed to comply with air emissions standards for equipment leaks, failed to comply with management requirements for generators of hazardous wastes, and failed to make an adequate hazardous waste determination for certain solid waste generated at the facility. The EPA didn’t specifically say how Tesla failed to comply with the regulations in each of these capacities. The Fremont Fire department, DTSC, and BAAQMD didn’t immediately respond to requests for comment.

Tesla said in an email to The Verge that it has addressed all of the issues raised by the inspections. “In the 16 months since the EPA visit, Tesla has made great strides in its environmental program and its ongoing compliance under Laurie Shelby, our VP of Environmental, Health & Safety,” a spokesperson for the company said. “We are pleased to have worked collaboratively with EPA Region 9 and are particularly proud that the city of Fremont will benefit from the agreed settlement.”

Tesla says it has already complied with the changes required by the 2017 inspection

This is not the first time Tesla has been fined by the EPA. The company had to pay a $275,000 fine as part of a 2010 settlement after not acquiring the proper certification for the original Tesla Roadster. Tesla also paid a BAAQMD fine of $139,500 in 2018 for pollution coming from the Fremont factory.

Tesla has had other environmental, health, and safety issues in the past, too. California’s Division of Occupational Safety and Health (Cal-OSHA) levied a $71,000 fine in 2013 after three employees were burned by molten aluminum. Cal-OSHA also fined Tesla $29,365 earlier this year for safety hazards discovered in the outdoor tent that the company built in 2018, which is where Model 3s are assembled, and the workplace safety agency reportedly has other investigations open.

The Center for Investigative Reporting has published multiple investigative reports documenting allegations of lax safety standards and underreported injuries. Four unnamed employees also told Bloomberg in 2018 (during some of the most crucial months of the Model 3 production ramp) that they were instructed by managers to walk through sewage on the factory floor. In each case, Tesla has said it wasn’t aware of the allegations, or it dismissed them outright.

Update April 1st, 8:30PM ET: Added information from the settlement agreement provided by the EPA.