XML 60 R5.htm IDEA: XBRL DOCUMENT v3.19.3
CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
9 Months Ended
Sep. 30, 2019
Sep. 30, 2018
Cash flows from operating activities:    
Net income $ 5,370 $ 25,541
Adjustments to reconcile net income to cash provided by operating activities:    
Depreciation, depletion, and amortization 65,103 39,004
Debt extinguishment and commitment costs 9,186 0
Non-cash interest expense 7,064 5,358
Change in value of common stock warrants 3,065 396
Deferred taxes (69,563) 839
Stock-based compensation 4,646 4,799
Unrealized loss on derivative contracts 6,328 8,105
Equity (earnings) losses from Laramie Energy, LLC 84,841 (4,274)
Net changes in operating assets and liabilities:    
Trade accounts receivable (39,455) (12,819)
Prepaid and other assets 13,838 1,868
Inventories (247,318) (8,994)
Deferred turnaround expenditures (8,986) 0
Obligations under inventory financing agreements 212,862 (43,250)
Accounts payable, other accrued liabilities, and operating lease assets and liabilities 51,651 35,327
Net cash provided by operating activities 98,632 51,900
Cash flows from investing activities:    
Acquisitions of businesses, net of cash acquired (274,291) (74,331)
Proceeds from purchase price settlement related to asset acquisition 3,226 0
Capital expenditures (64,086) (30,198)
Other investing activities 864 805
Net cash used in investing activities (334,287) (103,724)
Cash flows from financing activities:    
Proceeds from borrowings 470,505 106,500
Repayments of borrowings (207,121) (114,926)
Net borrowings on deferred payment arrangements and receivable advances 27,783 30,682
Payment of deferred loan costs (13,450) (379)
Payments for debt extinguishment and commitment costs (7,142) 0
Other financing activities, net 2,396 (653)
Net cash provided by financing activities 272,971 21,224
Net increase (decrease) in cash, cash equivalents, and restricted cash 37,316 (30,600)
Cash, cash equivalents, and restricted cash at beginning of period 75,819 119,077
Cash, cash equivalents, and restricted cash at end of period 113,135 88,477
Net cash received (paid) for:    
Interest paid (35,913) (12,981)
Taxes (3,974) (48)
Non-cash investing and financing activities:    
Accrued capital expenditures 7,207 4,048
Common stock issued for business combination 36,980 0
Common stock issued to repurchase convertible notes $ 30,055 $ 0