XML 105 R9.htm IDEA: XBRL DOCUMENT v3.10.0.1
Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2018
Dec. 31, 2017
Dec. 31, 2016
Operating Activities:      
Net loss $ (63,828) $ (39,714) $ (45,562)
Adjustments to reconcile net loss to net cash and cash equivalents provided by operating activities:      
Depreciation and amortization 23,428 15,786 11,177
Stock-based compensation 76,261 47,317 32,675
Deferred income tax expense (benefit) 36 (11,546) (133)
Amortization of debt discount and issuance costs 20,335 12,366  
(Accretion) amortization of bond discount premium (6,787) (1,576) 647
Non-cash rent expense 2,336 5,039 3,968
Unrealized currency translation 483 (139) 81
Changes in assets and liabilities, net of acquisition      
Accounts receivable (17,726) (20,180) (14,099)
Prepaid expenses and other assets 3,880 (5,588) (6,126)
Deferred commission expense (23,900) (4,004) (453)
Accounts payable 3,298 1,100 983
Accrued expenses and other current liabilities 11,920 8,195 4,004
Deferred rent 5,799 3,559 (107)
Deferred revenue 49,316 38,999 32,311
Net cash and cash equivalents provided by operating activities 84,851 49,614 19,366
Investing Activities:      
Purchases of investments (681,632) (890,009) (52,131)
Maturities and sales of investments 644,375 533,660 50,840
Purchases of property and equipment (22,305) (20,276) (15,789)
Capitalization of software development costs (11,168) (7,071) (5,749)
Acquisition of a business and purchase of technology   (9,415)  
Purchase of strategic investments (500) (3,500)  
Net cash and cash equivalents used in investing activities (71,230) (396,611) (22,829)
Financing Activities:      
Employee taxes paid related to the net share settlement of stock-based awards (8,033) (4,419) (2,368)
Proceeds related to the issuance of common stock under stock plans 21,555 13,086 11,584
Proceeds from issuance of convertible notes, net of issuance costs paid of $10,767   389,233  
Purchase of note hedge related to convertible notes   (78,920)  
Proceeds from the issuance of warrants related to convertible notes, net of issuance costs paid of $200   58,880  
Repayment of capital lease obligations (744) (1,054) (743)
Net cash and cash equivalents provided by financing activities 12,778 376,806 8,473
Effect on exchange rate changes on cash and cash equivalents (2,069) 2,790 (760)
Net increase in cash, cash equivalents and restricted cash 24,330 32,599 4,250
Cash, cash equivalents and restricted cash, beginning of year 92,784 60,185 55,935
Cash, cash equivalents and restricted cash, end of year 117,114 92,784 60,185
Supplemental cash flow disclosure:      
Cash paid for interest 1,036 762 174
Cash paid for income taxes 1,842 855 954
Non-cash investing and financing activities:      
Property and equipment acquired under capital lease   1,039 995
Capital expenditures incurred but not yet paid 666 680 1,383
Asset retirement obligations $ 216 $ 575 $ 561