XML 20 R7.htm IDEA: XBRL DOCUMENT v3.10.0.1
Condensed Consolidated Statement of Cash Flows (Unaudited) - USD ($)
$ in Thousands
6 Months Ended
Jun. 30, 2018
Jun. 30, 2017
Operating activities    
Net loss $ (64,817) $ (62,522)
Adjustments to reconcile net loss to net cash used in operating activities:    
Depreciation 3,083 3,072
Amortization of premium on investments 463 1,064
Unrealized loss (gain) on short-term investments 1,127 (1)
Loss (gain) on disposal of property and equipment 53 (4)
Stock-based compensation 24,109 17,980
Realized foreign currency gain (1,074) 0
Realized gain on sales of available-for-sale securities (87) (95)
Changes in operating assets and liabilities:    
Accounts receivable (21,737) 1,515
Prepaid expenses and other current assets (13,197) (124)
Other assets (722) (1,130)
Accounts payable (2,287) (2,962)
Accrued liabilities (13,371) (3,061)
Deferred revenue 20,370 (961)
Lease financing liability 25 401
Other long-term liabilities 1,135 (65)
Net cash used in operating activities (66,927) (46,893)
Investing activities    
Purchases of property and equipment (3,705) (1,612)
Proceeds from sale of property and equipment 184 5
Purchases of available-for-sale securities (98) (66)
Proceeds from sales of available-for-sale securities 8,167 18,152
Proceeds from maturities of available-for-sale securities 25,390 23,849
Net cash provided by investing activities 29,938 40,328
Financing activities    
Repayments of lease liability (201) (201)
Proceeds from follow-on offerings, net of underwriting discounts and commission costs 0 115,050
Cash paid for payroll taxes on restricted stock unit releases (10,005) (3,673)
Proceeds from issuance of common stock 17,343 12,244
Payments of deferred offering costs 0 (386)
Net cash provided by financing activities 7,137 123,034
Effect of exchange rate change on cash and cash equivalents (3) 26
Net decrease in cash and cash equivalents (29,855) 116,495
Total cash and cash equivalents at beginning of period 673,658 173,782
Total cash and cash equivalents at end of period $ 643,803 $ 290,277