XML 16 R5.htm IDEA: XBRL DOCUMENT v3.10.0.1
Condensed Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
6 Months Ended
Jun. 30, 2018
Jun. 30, 2017
Operating activities    
Net loss $ (66,697) $ (62,546)
Adjustments to reconcile net loss to net cash used in operating activities:    
Depreciation and amortization 3,679 3,620
Stock-based compensation 6,522 5,420
Premium amortization and discount accretion on investment securities 310 515
Amortization of debt discount 195  
Inventory excess adjustments 152 187
(Gain) loss on disposal of property and equipment (12) 12
Impairment of assets 1,544 576
Interest accrued for borrowings 20 399
Loss on investments 32 47
Loss (gain) from changes in fair value of warrants 4,119 (320)
Provision for doubtful accounts (58) (240)
Changes in operating assets and liabilities    
Accounts receivable (12,854) 5,383
Inventory (3,477) (1,132)
Prepaid expenses and other current assets 1,564 1,349
Other assets 415 223
Accounts payable (784) 2,028
Accrued compensation (984) (2,961)
Other accrued liabilities (3,752) 7,493
Deferred revenue 35,889 96
Deferred rent, net of current portion (320) 1,457
Net cash used in operating activities (34,497) (38,394)
Investing activities    
Purchases of investments (20,584) (4,219)
Proceeds from sale of investments 27,895 36,791
Proceeds from maturity of investments 27,600 3,000
Purchases of property and equipment, net (1,227) (8,066)
Net cash provided by investing activities 33,684 27,506
Financing activities    
Proceeds from exercise of stock options 4,197 939
Proceeds from issuance of common stock under employee stock purchase plan 1,855 1,503
Net cash provided by financing activities 6,052 2,442
Net increase (decrease) in cash, cash equivalents and restricted cash 5,239 (8,446)
Cash, cash equivalents and restricted cash, beginning of period 13,021 16,690
Cash, cash equivalents and restricted cash, end of period $ 18,260 $ 8,244