Safe Bulkers reported a quarterly profit for the first time in years, buoyed by climbing freight rates, gains from a debt rescheduling and the absence of impairment charges incurred in the same period last year.

For the third quarter, net income for the New York-listed company reached $6.73m compared to a $24.5m loss in the third quarter of 2016, the company said in a financial earnings report released after market.