XML 17 R5.htm IDEA: XBRL DOCUMENT v3.20.2
CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
6 Months Ended
Jun. 30, 2020
Jun. 30, 2019
Cash flows from operating activities:    
Net Income (Loss) $ (262,897) $ 89,261
Adjustments to reconcile net income (loss) to cash provided by operating activities:    
Depreciation, depletion, and amortization 43,411 42,876
Impairment expense 67,922 0
Debt extinguishment and commitment costs 0 9,186
Non-cash interest expense 3,261 4,968
Non-cash lower of cost or net realizable value adjustment 24,015 9,667
Change in value of common stock warrants (4,270) 2,239
Deferred taxes (21,088) (67,129)
Stock-based compensation 3,537 3,198
Unrealized loss on derivative contracts 2,048 21,086
Equity (earnings) losses from Laramie Energy, LLC 46,905 (792)
Net changes in operating assets and liabilities:    
Trade accounts receivable 114,219 (60,680)
Prepaid and other assets 28,241 12,029
Inventories 164,178 (164,545)
Deferred turnaround expenditures (6,399) (1,894)
Obligations under inventory financing agreements (150,358) 74,287
Accounts payable, other accrued liabilities, and operating lease ROU assets and liabilities (18,958) 50,480
Net cash provided by operating activities 33,767 24,237
Cash flows from investing activities:    
Acquisitions of businesses, net of cash acquired 0 (274,291)
Proceeds from purchase price settlement related to asset acquisition 0 3,226
Capital expenditures (30,165) (41,404)
Other investing activities 5 188
Net cash used in investing activities (30,160) (312,281)
Cash flows from financing activities:    
Proceeds from borrowings 180,950 450,505
Repayments of borrowings (88,208) (180,541)
Net borrowings (repayments) on deferred payment arrangements and receivable advances (72,506) 71,447
Payment of deferred loan costs (6,055) (13,413)
Payments for debt extinguishment and commitment costs 0 (7,142)
Other financing activities, net (934) 6
Net cash provided by financing activities 13,247 320,862
Net increase in cash, cash equivalents, and restricted cash 16,854 32,818
Cash, cash equivalents, and restricted cash at beginning of period 128,428 75,819
Cash, cash equivalents, and restricted cash at end of period 145,282 108,637
Net cash received (paid) for:    
Interest (28,950) (26,740)
Taxes 240 (3,966)
Non-cash investing and financing activities:    
Accrued capital expenditures 5,060 8,085
Value of warrants reclassified to equity 3,936 0
ROU assets obtained in exchange for new finance lease liabilities 1,915 192
ROU assets obtained in exchange for new operating lease liabilities 4,557 14,308
ROU assets terminated in exchange for release from operating lease liabilities 7,738 193
Common stock issued for business combination 0 36,980
Common stock issued to repurchase convertible notes $ 0 $ 30,055