XML 17 R5.htm IDEA: XBRL DOCUMENT v3.7.0.1
CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
6 Months Ended
Jun. 30, 2017
Jun. 30, 2016
Cash flows from operating activities:    
Net income (loss) $ 34,792 $ (31,761)
Adjustments to reconcile net income (loss) to cash provided by (used in) operating activities:    
Depreciation, depletion, and amortization 22,544 10,196
Loss on termination of financing agreements 1,804 0
Non-cash interest expense 4,482 3,877
Change in value of common stock warrants 1,236 (2,820)
Change in value of contingent consideration 0 (9,728)
Deferred taxes 463 (8,573)
Stock-based compensation 4,126 3,479
Unrealized loss (gain) on derivative contracts 3,656 (5,408)
Equity (earnings) losses from Laramie Energy, LLC (11,098) 18,818
Net changes in operating assets and liabilities:    
Trade accounts receivable 21,235 5,554
Prepaid and other assets 40,450 4,828
Inventories (108,378) (19,061)
Obligations under inventory financing agreements 69,002 26,936
Accounts payable and other accrued liabilities (22,117) (20,313)
Contingent consideration 0 (4,830)
Net cash provided by (used in) operating activities 62,197 (28,806)
Cash flows from investing activities:    
Acquisitions of businesses, net of cash acquired 0 (5,000)
Capital expenditures (11,777) (11,691)
Proceeds from sale of assets 0 2,323
Investment in Laramie Energy, LLC 0 (55,000)
Net cash used in investing activities (11,777) (69,368)
Cash flows from financing activities:    
Proceeds from borrowings 176,739 111,550
Repayments of borrowings (218,022) (17,138)
Net borrowings (repayments) on deferred payment arrangement (2,397) 15,597
Payment of deferred loan costs 0 (3,283)
Contingent consideration settlements 0 (11,980)
Other financing activities, net (348) (223)
Net cash provided by (used in) financing activities (44,028) 94,523
Net increase (decrease) in cash and cash equivalents 6,392 (3,651)
Cash and cash equivalents at beginning of period 47,772 167,788
Cash and cash equivalents at end of period 54,164 164,137
Cash received (paid) for:    
Interest (12,614) (4,342)
Taxes (410) 138
Non-cash investing and financing activities:    
Accrued capital expenditures $ 1,855 $ 4,542