v3.19.3.a.u2
CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2019
Dec. 31, 2018
Dec. 31, 2017
Cash flows from operating activities:      
Net loss $ (29,135) $ (22,397) $ (10,445)
Adjustments to reconcile net loss to net cash used in operating activities:      
Depreciation 933 774 488
Amortization of right-of-use assets 1,821    
Amortization of intangible assets 123 77 79
Impairment loss on intangible assets 104    
Amortization of deferred financing costs   81 246
Loss on disposal of equipment   1  
Loss on extinguishment of debt   2,186  
Provision for bad debt 514 852 223
Provision for inventory writedown 1,887 1,343 1,438
Changes in investment gains and losses (972) (721)  
Share-based compensation 10,304 7,606 3,609
Change in operating assets and liabilities:      
Accounts receivable (2,136) (5,108) (3,236)
Inventory (3,767) (6,009) (3,295)
Prepaid expenses and other (661) (192) (342)
Accounts payable and accrued expenses 2,920 3,711 1,927
Operating lease obligations (1,773)    
Cash paid for interest portion of finance leases (4)    
Contract and other liabilities (30) (66) 70
Net cash used in operating activities (19,872) (17,862) (9,238)
Cash flows from investing activities:      
Purchase of property and equipment (4,664) (6,282) (1,105)
Purchase of investments (121,074) (114,736)  
Proceeds from sale of investments 153,571 23,146  
Cash payments for intangible assets (562) (321) (187)
Net cash provided by / (used for) investing activities 27,271 (98,193) (1,292)
Cash flows from financing activities:      
Proceeds from issuance of common stock   132,964 15,891
Cash paid for equity offering   (257) (228)
Borrowing on revolving loan   26,253 57,599
Payments on revolving loan and prepayment penalties   (30,489) (57,624)
Repayments of long-term debt and prepayment penalties   (22,513) (21)
Cash paid for debt portion of finance leases 29    
Proceeds from exercise of stock options 4,002 3,884 1,434
Net cash provided by financing activities 4,031 109,842 17,022
Net increase in cash, cash equivalents, and restricted cash 11,430 (6,213) 6,492
Cash, cash equivalents, and restricted cash, beginning of period 30,294 36,507 30,015
Cash, cash equivalents and restricted cash, end of period 41,724 30,294 36,507
Supplemental disclosures of cash flow activity:      
Cash paid for interest 34 1,325 2,198
Supplemental disclosure of non-cash investing and financing activities:      
Acquisition of fixed assets in accounts payable and accrued expenses 3,212 $ 335 55
Capital lease additions     $ 62
Right-of-use asset and operating lease liability $ 26    

Source