XML 16 R5.htm IDEA: XBRL DOCUMENT v3.10.0.1
CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS (Unaudited) - USD ($)
$ in Thousands
6 Months Ended
Jun. 30, 2018
Jun. 30, 2017
Cash flows from operating activities:    
Net income $ 31,363 $ 34,792
Adjustments to reconcile net income to cash provided by operating activities:    
Depreciation, depletion, and amortization 25,812 22,544
Loss on termination of financing agreements 0 1,804
Non-cash interest expense 3,603 4,482
Change in value of common stock warrants (671) 1,236
Deferred taxes 31 463
Stock-based compensation 3,103 4,126
Unrealized loss on derivative contracts 4,878 3,656
Equity earnings from Laramie Energy, LLC (3,224) (11,098)
Net changes in operating assets and liabilities:    
Trade accounts receivable (10,604) 21,235
Prepaid and other assets (72,043) 40,449
Inventories 15,894 (108,378)
Obligations under inventory financing agreements 22,311 69,002
Accounts payable and other accrued liabilities 10,874 (22,117)
Net cash provided by operating activities 31,327 62,196
Cash flows from investing activities:    
Acquisitions of businesses, net of cash acquired (74,331) 0
Capital expenditures (17,657) (11,777)
Proceeds from sale of assets 797 0
Net cash used in investing activities (91,191) (11,777)
Cash flows from financing activities:    
Proceeds from borrowings 106,500 176,739
Repayments of borrowings (111,844) (218,022)
Net borrowings (repayments) on deferred payment arrangement 30,213 (2,397)
Payment of deferred loan costs (72) 0
Other financing activities, net (564) (348)
Net cash provided by (used in) financing activities 24,233 (44,028)
Net increase (decrease) in cash, cash equivalents, and restricted cash (35,631) 6,391
Cash, cash equivalents, and restricted cash at beginning of period 119,077 49,018
Cash, cash equivalents, and restricted cash at end of period 83,446 55,409
Net cash paid for:    
Interest paid (12,012) (12,614)
Taxes 0 (410)
Non-cash investing and financing activities:    
Accrued capital expenditures $ 2,145 $ 1,855