XML 26 R8.htm IDEA: XBRL DOCUMENT v3.22.0.1
CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2021
Dec. 31, 2020
Dec. 31, 2019
Cash flows from operating activities:      
Net income (loss) $ 13,254 $ (29,271) $ (5,924)
Adjustments to reconcile net income (loss) to net cash provided by operating activities:      
Depreciation 12,546 11,737 11,287
Amortization of intangibles 507 3,970 8,319
Stock-based compensation 24,056 18,040 12,074
Amortization of convertible debt discount 6,308 7,058 6,756
Amortization of warrant 1,741 1,746 13,576
Foreign currency remeasurement (5,126) 6,391 (290)
Loss on convertible debt extinguishment 0 1,362 5,695
Deferred income taxes, net (6,197) (105) (2,076)
Provision for expected credit losses and returns 4,142 1,666 1,500
Provision for excess and obsolete inventories 3,460 1,847 1,479
Other adjustments 181 409 1,349
Changes in operating assets and liabilities:      
Accounts receivable (26,722) 21,186 (8,388)
Inventories (39,338) (8,195) (4,819)
Other assets (3,096) 11,556 (3,347)
Accounts payable 42,303 (18,173) 5,086
Deferred revenues 15,014 19,751 (3,436)
Other liabilities (2,016) (11,812) (7,546)
Net cash provided by operating activities 41,017 39,163 31,295
Cash flows from investing activities:      
Purchases of property and equipment (12,975) (32,205) (10,328)
Net cash used in investing activities (12,975) (32,205) (10,328)
Cash flows from financing activities:      
Proceeds from convertible debt 0 0 115,500
Repayment of convertible debt 0 (7,999) (109,603)
Payment of convertible debt issuance costs 0 (672) (4,277)
Proceeds from other debts 3,861 9,398 4,684
Repayment of other debts (6,169) (6,646) (6,913)
Proceeds from common stock issued to employees 12,311 5,472 8,406
Payment of tax withholding obligations related to net share settlements of restricted stock units (2,064) (1,662) (1,492)
Net cash provided by (used in) financing activities 7,939 (2,109) 6,305
Effect of exchange rate changes on cash and cash equivalents (1,195) 738 (203)
Net increase in cash and cash equivalents 34,786 5,587 27,069
Cash and cash equivalents, beginning of the year 98,645 93,058 65,989
Cash and cash equivalents, end of the year 133,431 98,645 93,058
Supplemental disclosures of cash flow information:      
Income tax payments (refunds), net 2,525 (17) 1,138
Interest payments, net 4,095 4,221 4,260
Supplemental schedule of non-cash investing and financing activities:      
Capital expenditures incurred but not yet paid 751 1,155 2,055
Fair value of warrants issued 0 0 16,142
Fair value of 2022 Notes used to settle 2020 Notes $ 0 $ 44,357 $ 0