XML 19 R5.htm IDEA: XBRL DOCUMENT v3.8.0.1
CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS (Unaudited) - USD ($)
$ in Thousands
3 Months Ended
Mar. 31, 2018
Mar. 31, 2017
Cash flows from operating activities:    
Net income $ 15,185 $ 27,786
Adjustments to reconcile net income (loss) to cash provided by (used in) operating activities:    
Depreciation, depletion, and amortization 13,037 11,260
Non-cash interest expense 1,864 2,364
Change in value of common stock warrants (745) 689
Deferred taxes 31 202
Stock-based compensation 1,439 2,536
Unrealized (gain) loss on derivative contracts (846) (1,488)
Equity (earnings) losses from Laramie Energy, LLC (5,576) (8,746)
Net changes in operating assets and liabilities:    
Trade accounts receivable (6,086) 6,362
Prepaid and other assets (79,117) 32,049
Inventories 53,484 (94,743)
Obligations under inventory financing agreements (1,494) 76,515
Accounts payable and other accrued liabilities 21,465 (29,792)
Net cash provided by operating activities 12,641 24,994
Cash flows from investing activities:    
Acquisitions of businesses, net of cash acquired (74,680) 0
Capital expenditures (9,612) (7,579)
Net cash used in investing activities (84,292) (7,579)
Cash flows from financing activities:    
Proceeds from borrowings 25,000 74,700
Repayments of borrowings (27,655) (91,636)
Net borrowings (repayments) on deferred payment arrangement 21,544 (1,912)
Payment of deferred loan costs (72) 0
Other financing activities, net (543) (128)
Net cash provided by (used in) financing activities 18,274 (18,976)
Net decrease in cash, cash equivalents, and restricted cash (53,377) (1,561)
Cash, cash equivalents, and restricted cash at beginning of period 119,077 49,018
Cash, cash equivalents, and restricted cash at end of period 65,700 47,457
Net cash received (paid) for:    
Interest received 3,219  
Interest paid   (5,249)
Taxes 0 0
Non-cash investing and financing activities:    
Accrued capital expenditures $ 1,466 $ 1,676