XML 17 R6.htm IDEA: XBRL DOCUMENT v3.19.2
Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
6 Months Ended
Jun. 30, 2019
Jun. 30, 2018
Operating activities    
Net loss $ (66,507) $ (66,697)
Adjustments to reconcile net loss to net cash used in operating activities:    
Depreciation and amortization 3,952 3,679
Non-cash lease expense 3,849  
Stock-based compensation 9,855 6,522
Premium amortization and discount accretion on investment securities 151 310
Amortization of debt discount 215 195
Inventory excess adjustments 212 152
Impairment of assets   1,544
Loss on investments   32
Loss from changes in fair value of warrants   4,119
Other non-cash charges 203  
Other non-cash (benefits)   (50)
Changes in operating assets and liabilities    
Accounts receivable (829) (12,854)
Inventory (1,815) (3,477)
Prepaid expenses and other current assets (4,464) 1,564
Other assets (9,499) 415
Accounts payable (6,378) (784)
Accrued compensation (2,519) (984)
Other accrued liabilities 2,331 (3,752)
Deferred revenue 35,492 35,889
Deferred rent, net of current portion   (320)
Net cash used in operating activities (35,751) (34,497)
Investing activities    
Purchases of investments (162,176) (20,584)
Proceeds from sale of investments   27,895
Proceeds from maturity of investments 62,780 27,600
Purchases of property and equipment, net (1,599) (1,227)
Net cash used in (provided by) investing activities (100,995) 33,684
Financing activities    
Proceeds from exercise of stock options 5,983 4,197
Proceeds from issuance of common stock under employee stock purchase plan 2,147 1,855
Proceeds from public offering 107,595  
Net cash provided by financing activities 115,725 6,052
Net (decrease) increase in cash, cash equivalents and restricted cash (21,021) 5,239
Cash, cash equivalents and restricted cash, beginning of period 51,004 13,021
Cash, cash equivalents and restricted cash, end of period 29,983 $ 18,260
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 $ 323