XML 63 R8.htm IDEA: XBRL DOCUMENT v3.19.3
CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS (unaudited) - USD ($)
$ in Thousands
9 Months Ended
Sep. 30, 2019
Sep. 30, 2018
Cash flows from operating activities    
Net loss $ (52,565) $ (129,542)
Adjustments to reconcile net loss to net cash provided by operating activities:    
Depreciation and amortization 32,243 35,120
Non-cash leases expense 9,185 0
Stock-based compensation expense, net of amounts capitalized 45,047 116,104
Amortization of debt discount and issuance costs 225 726
Deferred income taxes (1,866) 431
Gain on sale of a private company investment (1,001) (999)
Other 143 234
Changes in assets and liabilities:    
Accounts receivable (1,073) (1,822)
Prepaid expenses and other assets (2,908) (5,451)
Accounts payable and accrued liabilities 5,955 4,596
Accrued interest on financing lease obligation, net of payments 0 (1,036)
Accrued compensation (1,401) (648)
Deferred revenue 23,486 16,269
Operating lease liabilities (10,237) 0
Net cash provided by operating activities 45,233 33,982
Cash flows from investing activities    
Acquisitions, net of cash acquired (114,603) 0
Purchases of property and equipment (2,026) (8,811)
Capitalized internal-use software (9,593) (8,857)
Proceeds from sale of a private company investment 1,001 999
Net cash used in investing activities (125,221) (16,669)
Cash flows from financing activities    
Proceeds from initial public offering, net 0 232,509
Payments of deferred offering costs 0 (1,487)
Proceeds from stock option exercises 41,846 440
Proceeds from employee stock purchase plan 2,662 0
Employee payroll taxes paid for net share settlement of restricted stock units 0 (24,566)
Payments to repurchase common stock 0 (16)
Repayment of debt (1,650) (2,250)
Net cash provided by financing activities 42,858 204,630
Effect of exchange rate changes on cash (435) 0
Net increase (decrease) in cash, cash equivalents and restricted cash (37,565) 221,943
Cash, cash equivalents and restricted cash at beginning of period 154,371 35,345
Cash, cash equivalents and restricted cash at end of period 116,806 257,288
Supplemental cash flow data:    
Interest paid for term debt 10,391 16,445
Interest paid for financing obligation on leased facility 0 6,114
Cash paid for operating leases 10,124 0
Income taxes paid 756 246
Non-cash investing and financing transactions:    
Fair value of common stock issued as acquisition consideration 36,204 0
Stock compensation included in capitalized software costs 2,889 1,251
Accrued unpaid capital expenditures 277 600
Lease liabilities arising from obtaining right-of-use assets 7,548 0
Accrued unpaid payroll taxes related to net share settlement and offering costs 0 6,924
Derecognized financing obligation related to building due to adoption of ASC 842 92,009 0
Derecognized building due to adoption of ASC 842 $ 71,781 $ 0