XML 23 R7.htm IDEA: XBRL DOCUMENT v3.22.0.1
Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2021
Dec. 31, 2020
Dec. 31, 2019
Operating Activities      
Income (loss) before income taxes from continuing operations $ 131,542 $ (16,171) $ 3,876
Income from discontinued operations, net of income taxes 4,324 1,956 11,184
Net income (loss) 135,866 (14,215) 15,060
Adjustments to reconcile net income (loss) to cash provided by (used in) operating activities:      
Depreciation and amortization 178,934 188,638 146,166
Bad debt expense, net 237 7,042 4,007
Equity in (earnings) losses of affiliates, net of dividends (4,842) (638) 7,671
Gain on sales of assets, net (6,184) (686) (5,483)
Stock-based compensation expense 11,038 10,183 16,229
Deferred federal income tax (104,618) 26,386 5,114
Inventory write down 3,399 11,676 0
Gain on sale of business from continuing operations (14,619) 0 (5,702)
Loss on sale of business from discontinued operations 1,491 0 0
Asset impairment 8,947 0 41,212
Gain from remeasurement of equity method investments, net 0 0 (35,214)
Other 7,146 10,072 3,540
Changes in operating assets and liabilities:      
Accounts receivable (184,002) (128,502) 1,487
Inventories (528,073) (139,499) (1,578)
Commodity derivatives (107,188) (115,170) 21,714
Other current and non-current assets (116,403) (53,208) 30,497
Payables and other current and non-current liabilities 667,821 123,489 103,842
Net cash (used in) provided by operating activities (51,050) (74,432) 348,562
Investing Activities      
Acquisition of businesses, net of cash acquired (11,425) 0 (102,580)
Purchases of property, plant and equipment and capitalized software (75,766) (77,147) (165,223)
Proceeds from sale of assets 4,508 11,112 5,446
Purchase of investments (6,243) (3,059) (1,490)
Proceeds from sale of business from continuing operations 18,130 0 25,171
Proceeds from sale of business from discontinued operations 543,102 0 0
Purchases of Rail assets (6,039) (27,739) (105,254)
Proceeds from sale of Rail assets 19,150 10,077 18,090
Other 1,831 0 808
Net cash provided by (used in) investing activities 487,248 (86,756) (325,032)
Financing Activities      
Net receipts (payments) under short-term lines of credit (105,895) 254,971 (278,824)
Proceeds from issuance of short-term debt 608,250 0 0
Payments of short-term debt (408,250) 0 0
Proceeds from issuance of long-term debt 203,000 471,906 922,594
Payments of long-term debt (530,733) (559,711) (608,483)
Contributions from noncontrolling interest owner 4,655 8,576 4,714
Distributions to noncontrolling interest owner (25) (10,322) 0
Payments of debt issuance costs (2,692) (898) (6,561)
Dividends paid (23,746) (23,004) (22,118)
Proceeds from exercises of stock options 6,667 0 0
Other 0 (5,222) (2,615)
Net cash (used in) provided by financing activities (248,769) 136,296 8,707
Effect of exchange rates on cash, cash equivalents and restricted cash (108) (880) 65
Increase (decrease) in cash, cash equivalents and restricted cash 187,321 (25,772) 32,302
Cash, cash equivalents and restricted cash at beginning of year 29,123 54,895 22,593
Cash, cash equivalents and restricted cash at end of year $ 216,444 $ 29,123 $ 54,895