It was the company’s first year-over-year quarterly profit increase of 2024.