KPMG LLC has reached a settlement with a former managing director who claimed he was fired last year in retaliation for raising concerns that the firm was understaffing audits of public companies, just months after the U.S. Securities and Exchange Commission faulted it for failing to properly vet the financial statements of an oil and gas company.

Gregory Andrew, who worked at KPMG for nearly two decades before his January 2018 firing, had argued in proceedings before the U.S. Labor Department that he was terminated in violation of a federal whistleblower protection law. He alleged that in the months leading up to his firing he’d complained about deficiencies in the number and qualifications of KPMG employees assigned to the firm’s audit of Citibank.