Consolidated Statement of Cash Flows - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2016
Dec. 31, 2015
Dec. 31, 2014
Cash flows from operating activities:      
Net (loss) income $ (35,734) $ (5,324) $ 6,967
Adjustments to reconcile net income to cash (used) provide by for operating activities:      
Depreciation and amortization 11,241 11,506 3,605
Changes in allowances for doubtful accounts (162) (1) 2
Acquisition expenses financed by seller     183
Loss (gain) on disposal of assets 44 (136)  
Changes in inventory reserves 1,655 792 97
Deferred income taxes 1,178 (2,074) (254)
Amortization of deferred financing cost 4,336 1,204 259
Revaluation of contingent acquisition liability (915)    
Write down of goodwill 275    
Amortization of debt discount 528 743  
Change in value of interest rate swaps (776) (706)  
Loss in non-marketable equity interest 5,752 199  
Share-based compensation 1,129 1,481 1,104
Deferred gain on sale and lease back (124) 301  
Reserves for uncertain tax provisions 54 60 (35)
Loss on sale of discontinued operations 14,515 1,378  
Changes in operating assets and liabilities:      
(Increase) decrease in accounts receivable 1,119 18,762 (4,671)
(Increase) decrease in inventory 2,174 (8,095) (7,803)
(Increase) decrease in prepaid expenses (368) (3,253) 318
(Increase) decrease in other assets 189 111 (123)
Increase (decrease) in accounts payable (4,259) 8,225 485
Increase (decrease) in accrued expense (662) (2,475) (1,105)
Increase (decrease) in income tax payable on ASV conversion   (16,231)  
Increase (decrease) in other current liabilities 171 (658) 300
Increase (decrease) in other long-term liabilities (1,356) 1,403 (30)
Discontinued operations - cash provided by (used) for operating activities (4,192) (837) (802)
Net cash (used) for provided by operating activities (4,188) 6,375 (1,503)
Cash flows from investing activities:      
Acquisition of businesses, net of cash acquired   (13,747) (24,998)
Proceeds from the sale of fixed assets 206 518  
Purchase of property and equipment (1,486) (2,327) (751)
Investment in intangibles other than goodwill (97) (233)  
Proceeds from the sale of discontinued operations 19,074 6,525  
Discontinued operations - cash used for investing activities 746 (138) (173)
Net cash provided by (used) for investing activities 18,443 (9,402) (25,922)
Cash flows from financing activities:      
New borrowings 30,701 2,446 677
Repayment of 2014 term loan (2,200) (11,800)  
Net proceeds from stock offering     12,500
New borrowings—convertible notes   15,000 7,500
(Payments) Borrowing on revolving term credit facilities (11,900) 1,045 3,957
Net borrowings (repayments) on working capital facilities 1,828 (4,274) 294
Investment received from noncontrolling interest 2,450    
Note payments (43,703) (8,119) (947)
Bank fees and cost related to new financing (2,155) (1,274) (519)
Shares repurchased for income tax withholding on share-based compensation (80) (75) (114)
Proceeds from sale and leaseback 4,080    
Excess tax benefits related to vesting of restricted stock     22
Proceeds from capital leases     942
Payments on capital lease obligations (510) (1,446) (1,397)
Discontinued operations - cash used for financing activities 4,735 437 3,731
Net cash (used) for provided by financing activities (16,754) 5,940 26,646
Net (decrease) increase in cash and cash equivalents (2,499) 2,913 (779)
Effect of exchange rate changes on cash 2,999 (1,363) (944)
Cash and cash equivalents at the beginning of the year 5,918 4,368 6,091
Cash and cash equivalents at end of period $ 6,418 5,918 $ 4,368
2014 Term Loan [Member]      
Cash flows from financing activities:      
New borrowings   $ 14,000