XML 22 R7.htm IDEA: XBRL DOCUMENT v3.10.0.1
CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2018
Dec. 31, 2017
Dec. 31, 2016
Operating Activities      
Net (loss) income $ (12,951) $ (92) $ 4,522
Adjustments to reconcile net (loss) income to net cash provided by operating activities:      
Depreciation and amortization 6,264 5,482 4,722
Loss on disposal of fixed assets 156 6 40
Stock-based compensation 25,704 17,592 8,786
Change in fair value of stock warrant liability     (43)
Unrealized foreign currency losses (gains) 1,647 (951) 368
Amortization of (discount) premium on short-term investments (295) 20 210
Deferred rent and other liabilities 1,919 722 (31)
Changes in operating assets and liabilities:      
Accounts receivable, net (2,252) (2,181) (6,791)
Inventory, net (2,303) (4,162) (2,935)
Prepaid expenses and other current assets (1,756) 494 (1,762)
Accounts payable and accrued liabilities 2,527 9,741 5,096
Deferred tax asset and receivable, net   (235)  
Other assets 204 (345) 127
Net cash provided by operating activities 18,864 26,091 12,309
Investing activities      
Purchases of property and equipment (10,315) (6,311) (6,278)
Purchases of short-term investments (93,696) (94,307) (75,192)
Proceeds from sales and maturities of short-term investments 78,851 88,891 55,354
Investment in company-owned life insurance (1,240) (663)  
Net cash used in investing activities (26,400) (12,390) (26,116)
Financing activities      
Proceeds from exercise of stock options 18,654 3,699 6,059
Share purchases under Employee Stock Purchase Plan 3,509 968 1,945
Payments of employee taxs related to vested restricted stock units (587)    
Payments of subordinated notes     (9,696)
Proceeds from exercise of stock warrants     50
Net cash provided by (used in) financing activities 21,576 4,667 (1,642)
Effect of exchange rate changes on cash and cash equivalents 48 (434) 371
Net increase (decrease) in cash, cash equivalents and restricted cash 14,088 17,934 (15,078)
Cash, cash equivalents and restricted cash at beginning of period 24,508 6,574 21,652
Cash, cash equivalents and restricted cash at end of period 38,596 24,508 6,574
Supplemental disclosures of cash flow information      
Taxes paid, net of refunds $ 401 12 513
Interest paid     285
Supplemental schedule of noncash investing and financing activities      
Reduction of liability upon vesting of stock options previously exercised for unvested stock   $ 4 $ 62