NEW YORK. Consumer banking giant Wells Fargo said its profits rose by 14% from a year earlier, helped by higher interest rates which offset the restrictions put on the bank’s businesses after years of scandal.

The San Francisco-based bank said Friday that it earned a profit of $5.86 billion, or $1.20 per share, up from $5.14 billion, or 96 cents a share, in the same period a year earlier. The results were better than the $1.11 per share that analysts had expected, according to FactSet.

Like other banks, Wells Fargo has benefited from a rise in interest rates, which has allowed it to charge more for consumer banking products like credit cards and mortgages.

The rise in interest rates was more than enough to nullify the restrictions that had been placed on the bank by regulators. Last year the Federal Reserve capped the size of Wells Fargo’s assets after the bank repeatedly found itself in one bank-related scandal after another, starting in 2016 with the uncovering of millions of fake checking accounts its employees opened to meet sales quotas.

Typically a bank the size of Wells would be increasing assets and loans in a growing economy such as this one. But the bank’s assets, loans and deposits all fell compared to a year earlier.

It’s not clear when the Federal Reserve will remove its restrictions on Wells’ business. Federal Reserve Chairman Jerome Powell said earlier this year there was more work to be done at Wells before he felt the bank has satisfied the Fed’s demands.

Powell’s comments, along with a poor performance in front of Congress last month, forced Wells Fargo’s Chief Executive Officer Tim Sloan to unexpectedly and abruptly resign.

The biggest US mortgage lender posted revenue of $26.3 billion in the period. Its revenue net of interest expense was $21.61 billion, also beating Street forecasts.