XML 16 R5.htm IDEA: XBRL DOCUMENT v3.20.2
CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
9 Months Ended
Sep. 30, 2020
Sep. 30, 2019
Cash flows from operating activities:    
Net Income (Loss) $ (277,168) $ 5,370
Adjustments to reconcile net income (loss) to cash provided by operating activities:    
Depreciation, depletion, and amortization 66,232 65,103
Impairment expense 67,922 0
Debt extinguishment and commitment costs 0 9,186
Non-cash interest expense 5,066 7,064
Non-cash lower of cost or net realizable value adjustment 22,281 2,496
Change in value of common stock warrants (4,270) 3,065
Deferred taxes (21,087) (69,563)
Stock-based compensation 5,314 4,646
Unrealized (gain) loss on derivative contracts (2,733) 6,328
Equity losses from Laramie Energy, LLC 46,905 84,841
Net changes in operating assets and liabilities:    
Trade accounts receivable 112,177 (39,455)
Prepaid and other assets 50,830 13,838
Inventories 98,830 (249,814)
Deferred turnaround expenditures (40,575) (8,986)
Obligations under inventory financing agreements (124,418) 212,862
Accounts payable, other accrued liabilities, and operating lease ROU assets and liabilities 20,647 51,651
Net cash provided by operating activities 25,953 98,632
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 (42,451) (64,086)
Other investing activities 23 864
Net cash used in investing activities (42,428) (334,287)
Cash flows from financing activities:    
Proceeds from borrowings 205,950 470,505
Repayments of borrowings (120,489) (207,121)
Net borrowings (repayments) on deferred payment arrangements and receivable advances (60,839) 27,783
Payment of deferred loan costs (6,266) (13,450)
Payments for debt extinguishment and commitment costs 0 (7,142)
Other financing activities, net (976) 2,396
Net cash provided by financing activities 17,380 272,971
Net increase in cash, cash equivalents, and restricted cash 905 37,316
Cash, cash equivalents, and restricted cash at beginning of period 128,428 75,819
Cash, cash equivalents, and restricted cash at end of period 129,333 113,135
Net cash received (paid) for:    
Interest (35,697) (35,913)
Taxes 124 (3,974)
Non-cash investing and financing activities:    
Accrued capital expenditures 10,981 7,207
Value of warrants reclassified to equity 3,936 0
ROU assets obtained in exchange for new finance lease liabilities 1,992 198
ROU assets obtained in exchange for new operating lease liabilities 11,974 15,532
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