XML 19 R8.htm IDEA: XBRL DOCUMENT v3.19.2
Condensed Consolidated Statement of Cash Flows (Unaudited) - USD ($)
$ in Thousands
6 Months Ended
Jun. 30, 2019
Jun. 30, 2018
Operating activities    
Net income (loss) $ 70,592 $ (64,817)
Adjustments to reconcile net income (loss) to net cash used in operating activities:    
Depreciation 5,523 3,083
Amortization of finance lease right-of-use assets 5,140 0
Net amortization of premium and discount on investments (2,457) 463
Unrealized loss (gain) on cash equivalents and short-term equity investments (59) 1,127
Loss (gain) on disposal of property and equipment (10) 53
Stock-based compensation 34,072 24,109
Realized foreign currency gain 0 (1,074)
Realized gain on sales of available-for-sale securities 0 (87)
Changes in operating assets and liabilities:    
Accounts receivable 57,231 (21,737)
Inventories (1,981) 0
Prepaid expenses and other current assets (131,803) (13,197)
Other assets (200) (722)
Accounts payable (5,079) (2,287)
Accrued and other liabilities 917 (13,371)
Deferred revenue (46,818) 20,370
Lease obligations 0 25
Accrued interest for finance lease liabilities 241 0
Other long-term liabilities 8,519 1,135
Net cash used in operating activities (6,172) (66,927)
Investing activities    
Purchases of property and equipment (2,206) (3,705)
Proceeds from sale of property and equipment 0 184
Purchases of available-for-sale securities and term deposit (105,511) (98)
Proceeds from sales of available-for-sale securities 0 8,167
Proceeds from maturities of investments 100,000 25,390
Net cash provided by (used in) investing activities (7,717) 29,938
Financing activities    
Repayments of finance lease liabilities (5,850) 0
Repayments of lease obligations (202) (201)
Cash paid for payroll taxes on restricted stock unit releases (8,065) (10,005)
Proceeds from issuance of common stock 13,337 17,343
Net cash provided by (used in) financing activities (780) 7,137
Effect of exchange rate change on cash and cash equivalents (2) (3)
Net decrease in cash and cash equivalents (14,671) (29,855)
Total cash and cash equivalents at beginning of period 89,258 673,658
Total cash and cash equivalents at end of period $ 74,587 $ 643,803