XML 68 R6.htm IDEA: XBRL DOCUMENT v3.19.3
Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
9 Months Ended
Sep. 30, 2019
Sep. 30, 2018
Operating activities    
Net loss $ (89,644) $ (96,313)
Adjustments to reconcile net loss to net cash used in operating activities:    
Depreciation and amortization 5,921 5,574
Non-cash lease expense 5,807  
Stock-based compensation 20,102 10,138
Premium amortization and discount accretion on investment securities 400 264
Amortization of debt discount 336 293
Interest accrued for borrowings and claims related settlement   189
Inventory excess adjustments 719 230
(Gain) loss on disposal of property and equipment   (12)
Impairment of assets 1,310 1,544
Impairment of right-of-use assets 361  
Loss on investments   42
Loss from changes in fair value of warrants   4,119
Provision for doubtful accounts 497 152
Other non-cash (benefits) (22)  
Gain on disposal of business (14,388)  
Changes in operating assets and liabilities    
Accounts receivable (2,491) (16,460)
Inventory 400 (3,477)
Prepaid expenses and other current assets (9,321) 2,371
Other assets (9,299) 302
Accounts payable (5,194) 967
Accrued compensation 1,569 (13)
Other accrued liabilities 1,683 (3,798)
Deferred revenue 42,864 36,586
Deferred rent, net of current portion   (466)
Net cash used in operating activities (48,390) (57,768)
Investing activities    
Purchases of investments (197,009) (115,066)
Proceeds from sale of investments   37,387
Proceeds from maturity of investments 118,780 52,600
Net proceeds from disposal of business 9,675  
Purchases of property and equipment, net (2,554) (1,770)
Net cash provided by (used in) investing activities (71,108) (26,849)
Financing activities    
Proceeds from exercise of stock options 10,416 12,063
Proceeds from issuance of common stock under employee stock purchase plan 2,147 1,855
Proceeds from public offering, net of issuance costs 107,595 96,777
Net cash provided by financing activities 120,158 110,695
Net (decrease) increase in cash, cash equivalents and restricted cash 660 26,078
Cash, cash equivalents and restricted cash, beginning of period 51,004 13,021
Cash, cash equivalents and restricted cash, end of period 51,664 $ 39,099
Supplemental non-cash investing and financing activities:    
Obtaining right-of-use assets in exchange for lease liabilities 28,191  
Purchases of property and equipment in accounts payable and accruals $ 56