XML 20 R5.htm IDEA: XBRL DOCUMENT v3.10.0.1
CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS (Unaudited) - USD ($)
$ in Thousands
9 Months Ended
Sep. 30, 2018
Sep. 30, 2017
Cash flows from operating activities:    
Net income $ 25,541 $ 53,616
Adjustments to reconcile net income to cash provided by operating activities:    
Depreciation, depletion, and amortization 39,004 33,848
Loss on termination of financing agreements 0 1,804
Non-cash interest expense 5,358 6,189
Change in value of common stock warrants 396 2,211
Deferred taxes 839 462
Stock-based compensation 4,799 5,803
Unrealized loss on derivative contracts 8,105 557
Equity earnings from Laramie Energy, LLC (4,274) (11,651)
Net changes in operating assets and liabilities:    
Trade accounts receivable (12,819) 12,070
Prepaid and other assets 1,868 46,747
Inventories (8,994) (121,040)
Obligations under inventory financing agreements (43,250) 89,549
Accounts payable and other accrued liabilities 35,327 (14,709)
Net cash provided by (used in) operating activities 51,900 105,456
Cash flows from investing activities:    
Acquisitions of businesses, net of cash acquired (74,331) 0
Capital expenditures (30,198) (19,888)
Proceeds from sale of assets 805 19
Net cash used in investing activities (103,724) (19,869)
Cash flows from financing activities:    
Proceeds from borrowings 106,500 239,538
Repayments of borrowings (114,926) (292,684)
Net borrowings (repayments) on deferred payment arrangement 30,682 (1,493)
Payment of deferred loan costs (379) (50)
Other financing activities, net (653) (872)
Net cash provided by (used in) financing activities 21,224 (55,561)
Net increase (decrease) in cash, cash equivalents, and restricted cash (30,600) 30,026
Cash, cash equivalents, and restricted cash at beginning of period 119,077 49,018
Cash, cash equivalents, and restricted cash at end of period 88,477 79,044
Net cash paid for:    
Interest paid (12,981) (15,168)
Taxes (48) (1,115)
Non-cash investing and financing activities:    
Accrued capital expenditures $ 4,048 $ 4,469