XML 17 R5.htm IDEA: XBRL DOCUMENT v3.19.2
CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
6 Months Ended
Jun. 30, 2019
Jun. 30, 2018
Cash flows from operating activities:    
Net income $ 89,261 $ 31,363
Adjustments to reconcile net income to cash provided by operating activities:    
Depreciation, depletion, and amortization 42,876 25,812
Debt extinguishment and commitment costs 9,186 0
Non-cash interest expense 4,968 3,603
Change in value of common stock warrants 2,239 (671)
Deferred taxes (67,129) 31
Stock-based compensation 3,198 3,103
Unrealized loss on derivative contracts 21,086 4,878
Equity earnings from Laramie Energy, LLC (792) (3,224)
Net changes in operating assets and liabilities:    
Trade accounts receivable (60,680) (10,604)
Prepaid and other assets 12,029 (72,043)
Inventories (154,878) 15,894
Deferred turnaround expenditures (1,894) 0
Obligations under inventory financing agreements 74,287 22,311
Accounts payable, other accrued liabilities, and operating lease assets and liabilities 50,480 10,874
Net cash provided by operating activities 24,237 31,327
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 (41,404) (17,657)
Other investing activities 188 797
Net cash used in investing activities (312,281) (91,191)
Cash flows from financing activities:    
Proceeds from borrowings 450,505 106,500
Repayments of borrowings (180,541) (111,844)
Net borrowings on deferred payment arrangements and receivable advances 71,447 30,213
Payment of deferred loan costs (13,413) (72)
Payments for debt extinguishment and commitment costs (7,142) 0
Other financing activities, net 6 (564)
Net cash provided by financing activities 320,862 24,233
Net increase (decrease) in cash, cash equivalents, and restricted cash 32,818 (35,631)
Cash, cash equivalents, and restricted cash at beginning of period 75,819 119,077
Cash, cash equivalents, and restricted cash at end of period 108,637 83,446
Net cash received (paid) for:    
Interest paid (26,740) (12,012)
Taxes (3,966) 0
Non-cash investing and financing activities:    
Accrued capital expenditures 8,085 2,145
Common stock issued for business combination 36,980 0
Common stock issued to repurchase convertible notes $ 30,055 $ 0