Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
9 Months Ended
Sep. 30, 2016
Sep. 30, 2015
Cash flows from operating activities    
Net loss $ (3,803) $ (10,824)
Adjustments to reconcile net loss to net cash used in operating activities:    
Depreciation and amortization 2,410 3,024
Gain on sale of discontinued operations   (2,340)
Gain on change in warrant liability (48) (1,303)
Impairment of fixed assets   160
Stock-based compensation 757 1,197
Non-cash loan origination fees 52 742
Non-cash consulting expense   320
Non-cash directors’ fees 31 31
Bad debt expense   460
Deferred tax expense   7
Changes in operating assets and liabilities:    
Accounts receivable 955 4,745
Inventory 416 249
Other current assets 330 88
Non-current deferred tax liabilities   (32)
Other assets 8 (293)
Accounts payable (913) (2,405)
Accrued liabilities (706) 329
Deferred revenue (521) (579)
Loss on long-term contract (524) (1,840)
Deferred rent and other liabilities (222) (522)
Net cash used in operating activities (1,778) (8,786)
Cash flows from investing activities    
Proceeds from sale of discontinued operations   1,190
Purchases of property and equipment (288) (356)
Net cash provided by (used in) investing activities (288) 834
Cash flows from financing activities    
Net borrowings on line of credit 700  
Proceeds from long-term debt   1,000
Conversion of preferred to common stock   (41)
Issuance of preferred shares, net of issuance costs   9,627
Net cash provided by financing activities 700 10,586
Effect of exchange rate changes on cash (353) 3
Net increase (decrease) in cash and cash equivalents (1,719) 2,637
Cash and cash equivalents, beginning of period 3,206 3,077
Cash and cash equivalents, end of period $ 1,487 $ 5,714