v3.22.2.2
Condensed Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
9 Months Ended
Sep. 30, 2022
Sep. 30, 2021
Operating activities    
Net income from continuing operations $ 133,784 $ 66,069
Income from discontinued operations, net of income taxes 18,099 7,453
Net income 151,883 73,522
Adjustments to reconcile net income to cash provided by (used in) operating activities:    
Depreciation and amortization 101,266 142,137
Bad debt expense, net 5,028 (2,182)
Equity in (earnings) losses of affiliates, net of dividends 5,597 (2,389)
Gain on sale of business from continuing operations 0 (14,619)
(Gain) loss on sale of business from discontinued operations (27,091) 1,491
Gain on sales of assets, net (8,854) (6,505)
Stock-based compensation expense 7,697 6,727
Deferred federal income tax (20,819) (93,725)
Other 10,055 10,404
Changes in operating assets and liabilities:    
Accounts receivable (140,866) (89,902)
Inventories 236,854 266,865
Commodity derivatives (104,901) (158,741)
Other current and non-current assets 2,000 (3,357)
Payables and other current and non-current liabilities (371,219) (10,659)
Net cash (used in) provided by operating activities (153,370) 119,067
Investing Activities    
Purchases of property, plant and equipment and capitalized software (72,247) (52,730)
Proceeds from sale of assets 4,810 3,999
Purchases of investments (2,105) (5,993)
Proceeds from sale of business from continuing operations 5,171 18,130
Proceeds from sale of business from discontinued operations 56,302 543,102
Purchases of Rail assets (27,464) (6,039)
Proceeds from sale of Rail assets 36,706 18,705
Other 1,746 349
Net cash provided by investing activities 2,919 519,523
Financing Activities    
Net receipts (payments) under short-term lines of credit 361,318 (324,279)
Proceeds from issuance of short-term debt 350,000 608,250
Payments of short-term debt (550,000) (408,250)
Proceeds from issuance of long-term debt 0 186,800
Payments of long-term debt (22,585) (485,527)
Contributions from noncontrolling interest owner 2,450 4,655
Distributions to noncontrolling interest owner (34,930) (25)
Payments of debt issuance costs (7,802) (2,059)
Dividends paid (18,262) (17,503)
Proceeds from exercises of stock options 5,024 0
Common stock repurchased (6,769) 0
Other (2,955) (12,709)
Net cash provided by (used in) financing activities 75,489 (450,647)
Effect of exchange rates on cash and cash equivalents (711) (192)
Increase (decrease) in cash and cash equivalents (75,673) 187,751
Cash and cash equivalents at beginning of period 216,444 29,123
Cash and cash equivalents at end of period $ 140,771 $ 216,874