OMAHA, Neb. (AP) — CSX Corp. delivered 15% more profit in the third quarter as it handled 2% more freight and worked to eliminate the delays shippers have been complaining about for months.

The Jacksonville, Florida-based railroad said Thursday that it earned $1.11 billion, or 52 cents per share, in the three-month period that ended Sept. 30. That’s up from $968 million, or 43 cents per share, a year ago.

The results beat Wall Street expectations for earnings of 49 cents per share, according to FactSet. The numbers include a $42 million charge because the contracts railroads negotiated with their unions that include 24% raises and $5,000 in bonuses cost more than CSX expected.

CSX has been hiring more workers throughout the year to help it better handle the freight its customers want to ship without significant delays. The railroad said its headcount is now up to 6,819 from about 6,400 at the start of the year. Its goal is to have roughly 7,000 employees by the end of the year.

Those additional workers are helping. Throughout the year, the average speed of CSX’s trains has been increasing and hit 15.8 mph in the third quarter. That’s down from last year’s 17.7 mph but significantly better than the 14.9 mph CSX reported at the start of this year.

Newly hired CEO Joe Hinrichs said even with the uncertainty in the economy, the railroad still expects to generate double-digit improvement in its full-year revenue and operating income this year.

CSX is one of the nation’s largest railroads, and it operates more than 20,000 miles (32,000 kilometers) of track in 26 Eastern states and two Canadian provinces after acquiring Pam-Am Railways in the northeastern United States earlier this year.

Shares in CSX rose about 5% in after-hours trading following the release of the earnings report.