XML 20 R7.htm IDEA: XBRL DOCUMENT v3.20.2
CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
6 Months Ended
Jun. 30, 2020
Jun. 30, 2019
Cash flows used in operating activities:    
Net loss $ (55,285) $ (59,474)
Adjustments to reconcile net loss to net cash provided by (used in) operating activities:    
Depreciation and amortization 22,655 22,443
Allowance for doubtful accounts 2,290 1,014
Stock-based compensation 40,243 30,891
Deferred income taxes (3,457) (1,472)
Accretion of interest 16,576 12,347
Loss on extinguishment of debt 7,751 0
Changes in operating assets and liabilities:    
Accounts receivable (24,773) (7,237)
Prepaid expenses and other current assets 1,595 1,251
Other assets 36 74
Accounts payable 1,844 374
Accrued expenses and other current liabilities 25,208 10,358
Accrued compensation (1,818) (9,133)
Operating lease liabilities (2,788) (794)
Other liabilities (847) (2,385)
Net cash provided by (used) in operating activities 29,230 (1,743)
Cash flows (used in) provided by investing activities:    
Purchase of property and equipment (1,641) (1,248)
Purchase of internal-use software (6,449) (2,975)
Proceeds from marketable securities 0 22,695
Sale of assets 0 7
Investment in securities 0 (5,000)
Pre-funding associated with the pending acquisition (13,500) (11,207)
Net cash (used in) provided by investing activities (21,590) 2,272
Cash flows provided by financing activities:    
Net proceeds from the exercise of stock options 33,513 15,701
Proceeds from issuance of 2027 Notes 1,000,000 0
Issuance costs of 2027 Notes (24,070) 0
Contingent consideration fair value adjustment 0 210
Repurchase of 2022 Notes (228,130) 0
Proceeds from employee stock purchase plan 2,473 1,875
Cash received (paid) for withholding taxes on stock-based compensation, net 4,492 (1,886)
Net cash provided by financing activities 788,278 15,900
Net increase in cash and cash equivalents 795,918 16,429
Foreign exchange difference (1,428) 25
Cash and cash equivalents at beginning of the period 514,353 423,989
Cash and cash equivalents at end of the period 1,308,843 440,443
Income taxes paid 59 309
Interest paid $ 5,609 $ 6,102