The fifth largest U.S. bank by assets is typically more reliant on bond trading revenue than its peers. That helped the bank earn big profits leading into the 2007-2008 financial crisis, but regulations have crimped that business.

The Wall Street bank’s net income applicable to common shareholders was nearly flat at $1.63 billion in the second quarter ended June 30.

Earnings per share, however, rose to $3.95 as number of shares outstanding decreased nearly 6 percent. It topped analysts’ average estimate of $3.39 per share, according to Thomson Reuters I/B/E/S.

The lender’s return on equity was 8.7 percent. Analysts typically like to see a bank produce returns of at least 10 percent to meet its cost of capital.

Goldman has been working to cut its reliance on trading and shift to more stable businesses like investment management. That division generated revenue of $1.53 billion, up 13 percent from the year-ago quarter.

The bank has also pushed into consumer lending, launching an online platform called Marcus in 2016.

Shares of Goldman, a Dow component, fell 0.6 percent in premarket trading. The stock is the worst performing among the six large U.S. banks. Up to Monday’s close, it had lost 4.3 percent in value this year, significantly underperforming the broader S&P 500 Financial Index, which has gained 6.7 percent.

The company’s arch rival Morgan Stanley is expected to report results on Wednesday.