XML 17 R6.htm IDEA: XBRL DOCUMENT v3.19.2
Condensed Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
3 Months Ended 6 Months Ended 12 Months Ended
Jun. 30, 2019
Jun. 30, 2018
Jun. 30, 2019
Jun. 30, 2018
Dec. 31, 2018
Cash flows from operating activities          
Net loss $ (24,596) $ (22,540) $ (54,920) $ (46,719)  
Adjustments to reconcile net loss to net cash used in operating activities          
Depreciation     3,586 3,611  
Amortization of operating lease right-of-use assets     1,289    
Amortization of debt discount and financing costs     574 486  
Gain on derivative     (16) (143)  
Stock-based compensation     8,470 10,506  
Accretion from investment discount     (677) (194)  
Changes in assets and liabilities          
Accounts receivable     (3,528) 5,987  
Inventory     (40) (560)  
Prepaid expenses and other assets     388 337  
Accounts payable     685 (4,765)  
Accrued expenses     1,284 (1,683)  
Deferred service revenue     734 75  
Other liabilities     (701) (208)  
Net cash used in operating activities     (42,872) (33,270)  
Cash flows from investing activities          
Purchase of property and equipment     (1,866) (1,700)  
Purchase of investments     (36,748) (44,500)  
Sales of investments       2,442  
Maturities of investments     84,410 48,200  
Net cash provided by investing activities     45,796 4,442  
Cash flows from financing activities          
Proceeds from issuance of common stock from equity plans     8,090 2,517  
Proceeds from issuance of common stock from underwritten public equity offering, net of issuance costs       32,862  
Net cash provided by financing activities     8,090 35,379  
Net increase in cash and cash equivalents and restricted cash     11,014 6,551  
Cash and cash equivalents and restricted cash at beginning of period     23,344 21,007 $ 21,007
Cash and cash equivalents and restricted cash at end of period 34,358 27,558 34,358 27,558 23,344
Cash and cash equivalents at end of period 30,358 23,058 30,358 23,058 $ 18,844
Restricted cash at end of period $ 4,000 $ 4,500 4,000 4,500  
Supplemental disclosure of non-cash operating activities          
Inventory transferred to property and equipment     1,427 492  
Inventory transferred from property and equipment     $ (966) $ (343)