CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS (Unaudited) - USD ($)
$ in Thousands
6 Months Ended
Jun. 27, 2020
Jun. 29, 2019
Operating activities:    
Net loss $ (11,156) $ (14,812)
Adjustments to reconcile net loss to net cash provided by (used in) operating activities:    
Stock-based compensation 6,225 5,714
Depreciation and amortization 7,006 4,644
Asset retirements and write-downs 3,749 138
Changes in operating assets and liabilities:    
Accounts receivable, net (12,082) 6,840
Inventory 3,494 4,791
Prepaid expenses and other assets 1,175 1,697
Accounts payable (671) (2,676)
Accrued liabilities 7,868 (10,314)
Deferred revenue (947) 3,223
Other long-term liabilities (726) (2,496)
Net cash provided by (used in) operating activities 3,935 (3,251)
Investing activity –    
Purchases of property and equipment (4,480) (9,538)
Financing activities:    
Proceeds from exercise of stock options 5,608 326
Proceeds from employee stock purchase plans 4,712 4,157
Taxes paid for awards vested under equity incentive plan 0 (156)
Payments related to financing arrangements (1,529) (1,267)
Proceeds from line of credit 30,000 89,000
Repayment of line of credit (34,000) (94,000)
Payments to originate the line of credit (285) 0
Net cash provided by (used in) financing activities 4,506 (1,940)
Effect of exchange rate changes on cash, cash equivalents and restricted cash (238) 25
Net increase (decrease) in cash, cash equivalents and restricted cash 3,723 (14,704)
Cash, cash equivalents and restricted cash at beginning of period 47,457 50,274
Cash, cash equivalents and restricted cash at end of period $ 51,180 $ 35,570