Quarterly report pursuant to Section 13 or 15(d)

Condensed Consolidated Statements of Cash Flows

v3.22.2.2
Condensed Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
6 Months Ended
Jun. 30, 2022
Jun. 30, 2021
Cash flows from operating activities:    
Net loss $ (18,688) $ (16,023)
Adjustments to reconcile net loss to net cash used in operating activities:    
Unrealized loss on investments 94 758
Loss on termination of lease   333
Disposal expense and other 9 94
Depreciation and amortization 11,813 10,645
Amortization of operating lease right of use assets 483 639
Change in allowance for doubtful accounts (119) 63
Non-cash interest income (15) (789)
Deferred tax (9,487) 730
Share-based compensation 2,012 1,557
Accretion of debt discount 1,580 1,198
Change in fair value of financial instruments (1,750) 7,986
Loan receivable losses 1,021  
Impairment loss and loss on disposal of assets 7,366  
Non-cash interest expense 2,195 1,695
Net change in working capital items:    
Trade receivables and others, net 2,505 2,542
Inventories 5,353 (17,269)
Prepaid expenses and other current assets (693) 381
Accounts payable and accrued liabilities 452 7,332
Income tax payable 1,052 (192)
Deferred revenue (1,420) 986
Net cash provided by operating activities 3,763 2,666
Cash flows from investing activities:    
Purchases of property, plant, and equipment (13,979) (1,742)
Proceeds from sale of property, plant and equipment 3 29
Repayment of loan receivable, net of advances (826) 2,986
Net cash (used in) provided by investing activities (14,802) 1,273
Cash flows from financing activities:    
Payments on lease liability (1,190) (1,590)
Repayments on notes payable (67,623) (400)
Proceeds from notes payable 107,583  
Proceeds from options and warrants exercised   173
Net cash provided by (used in) financing activities 38,770 (1,817)
Effect of foreign exchange on cash and cash equivalents (2) 23
Net change in cash and cash equivalents and restricted cash 27,729 2,145
Cash and cash equivalents and restricted cash, beginning of year 6,952 8,859
Cash and cash equivalents and restricted cash, end of year 34,681 11,004
Supplemental disclosures of non-cash investing and financing activities:    
Increases to right of use assets related to Taunton financing transaction   199
Decreases to right of use assets related to Taunton financing transaction 3,940  
Decreases to operating lease liability related to Taunton financing transaction 4,454  
Decreases to property, plant, and equipment related to Taunton financing 514  
Supplemental disclosure of cash flow information    
Cash paid for interest 2,075 1,448
Cash paid for income taxes $ 61 $ 818