XML 20 R7.htm IDEA: XBRL DOCUMENT v3.19.2
CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
6 Months Ended
Jun. 30, 2019
Jun. 30, 2018
Cash flows used in operating activities:    
Net loss $ (59,474) $ (48,941)
Adjustments to reconcile net loss to net cash used in operating activities:    
Depreciation and amortization 22,443 16,299
Allowance for doubtful accounts 1,014 1,258
Stock-based compensation 30,891 18,891
Deferred income taxes (1,472) (1,258)
Accretion of interest 12,347 7,627
Gain on sale   (4,070)
Changes in operating assets and liabilities:    
Accounts receivable (7,237) (4,027)
Prepaid expenses and other current assets 1,251 (540)
Other assets 74 (73)
Accounts payable 374 1,371
Accrued expenses and other current liabilities 10,358 (287)
Accrued compensation (9,133) (3,812)
Operating lease liabilities (794)  
Other liabilities (2,385) 45
Net cash used in operating activities (1,743) (17,517)
Cash flows provided by (used in) investing activities:    
Purchase of property and equipment (1,248) (2,015)
Purchase of internal-use software (2,975) (1,388)
Purchase of marketable securities   (12,141)
Proceeds from marketable securities 22,695 67,970
Sale of assets 7 5,500
Investment in securities (5,000)  
Acquisition of business, net of cash acquired (11,207) (273,535)
Net cash provided by (used in) investing activities 2,272 (215,609)
Cash flows provided by financing activities:    
Net proceeds from the exercise of stock options 15,701 15,765
Proceeds from issuance of convertible notes   279,126
Contingent consideration fair value adjustment 210  
Proceeds from employee stock purchase plan 1,875 1,423
Cash (paid)/received for withholding taxes on stock-based compensation, net (1,886) 500
Net cash provided by financing activities 15,900 296,814
Net increase in cash and cash equivalents 16,429 63,688
Foreign exchange difference 25 (701)
Cash and cash equivalents at beginning of the period 423,989 42,817
Cash and cash equivalents at end of the period 440,443 105,804
Income taxes paid 309 59
Interest paid $ 6,102 $ 4,125