XML 16 R5.htm IDEA: XBRL DOCUMENT v3.7.0.1
CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
6 Months Ended
Jun. 30, 2017
Jun. 30, 2016
Cash flows from operating activities    
Net income (loss) $ (78,310) $ 10,101
Adjustments to reconcile net income (loss) to net cash used in operating activities:    
Depreciation and amortization expense 3,981 3,557
Share-based compensation 7,063 6,124
Changes in operating assets and liabilities:    
Accounts receivable 773 (77,151)
Prepaid expenses (525) (1,976)
Other assets 65 (426)
Accounts payable (2,026) (355)
Accrued expenses 6,185 866
Lease exit liability (771) (2,134)
Deferred revenue (1,866) (3,179)
Deferred rent (655) (563)
Net cash used in operating activities (66,086) (65,136)
Cash flows from investing activities    
Purchases of marketable securities (56,937) (202,392)
Proceeds from sale and maturities of marketable securities 130,505 141,611
Purchases of property and equipment (8,795) (8,339)
Net cash provided by (used in) investing activities 64,773 (69,120)
Cash flows from financing activities    
Proceeds from issuance of common stock, net of offering costs 33,175 0
Proceeds from stock option exercises and ESPP purchases 667 351
Net cash provided by financing activities 33,842 351
Net change in cash and cash equivalents 32,529 (133,905)
Cash and cash equivalents at beginning of period 84,098 196,172
Cash and cash equivalents at end of period $ 116,627 $ 62,267