XML 32 R6.htm IDEA: XBRL DOCUMENT v3.7.0.1
CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2016
Dec. 31, 2015
Dec. 31, 2014
Net Cash Provided by (Used in) Operating Activities [Abstract]      
Net loss $ (45,835) $ (39,911) $ (47,041)
Adjustments to reconcile net loss to cash provided by (used in) operating activities:      
Depreciation, depletion and amortization 31,617 19,918 14,897
Impairment expense 0 9,639 0
Loss on termination of financing agreements 0 19,669 1,788
Gain on termination of other post-retirement benefits 0 (5,550) 0
Non-cash interest expense 18,121 12,449 13,470
Change in value of common stock warrants (2,962) 3,664 (4,433)
Change in value of contingent consideration (10,770) 18,450 (2,849)
Deferred taxes (7,935) (16,489) (257)
Loss on sale of assets, net 0 0 624
Stock-based compensation 6,625 5,165 3,970
Unrealized loss (gain) on derivative contracts (15,479) 10,896 (1,015)
Equity losses from Laramie Energy, LLC 22,381 55,983 (2,849)
Net changes in operating assets and liabilities:      
Trade accounts receivable (17,162) 54,529 5,608
Collateral posted with broker for derivative transactions 18,212 (20,927) 0
Prepaid and other assets 447 (35,697) (5,966)
Inventories 49,015 31,913 61,529
Deferred turnaround expenditures (32,661) 0 0
Obligations under inventory financing agreements (5,977) 34,845 (112,884)
Accounts payable and other accrued liabilities (26,698) (26,188) 20,804
Contingent consideration (4,830) 0 0
Net cash provided by (used in) operating activities (23,891) 132,358 (54,604)
Cash flows from investing activities      
Acquisitions of businesses, net of cash acquired (209,183) (64,331) (10,582)
Capital expenditures (24,833) (22,345) (14,300)
Proceeds from sale of assets 2,773 0 595
Investment in Laramie Energy, LLC (55,000) (27,529) (12)
Net cash used in investing activities (286,243) (114,205) (24,299)
Cash flows from financing activities      
Proceeds from sale of common stock, net of offering costs 49,044 76,056 103,949
Proceeds from borrowings 354,682 208,158 363,620
Repayments of borrowings (202,165) (227,212) (331,530)
Net borrowings (repayments) on deferred payment arrangement 8,027 (1,436) 0
Payment of deferred loan costs (6,892) (7,335) (6,045)
Contingent consideration settlements (11,980) 0 0
Proceeds from inventory financing agreements 0 271,000 0
Payments for termination of supply and exchange agreements 0 (257,811) 0
Other financing activities, net (598) (995) 58
Net cash provided by financing activities 190,118 60,425 130,052
Net increase (decrease) in cash and cash equivalents (120,016) 78,578 51,149
Cash and cash equivalents at beginning of period 167,788 89,210 38,061
Cash and cash equivalents at end of period 47,772 167,788 89,210
Cash received (paid) for:      
Interest (13,217) (6,891) (4,526)
Taxes 589 402 243
Non-cash investing and financing activities:      
Accrued capital expenditures 4,907 2,102 2,328
Stock issued used to settle bankruptcy claims 0 0 2,677
Value of warrants and debt reclassified to equity 3,084 7,691 786
Capital lease additions $ 1,575 $ 216 $ 337