XML 20 R6.htm IDEA: XBRL DOCUMENT v3.22.0.1
Statements of Cash Flows - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2021
Dec. 31, 2020
Dec. 31, 2019
Cash flows from operating activities      
Net income (loss) $ 82,631 $ (69,333) $ 26,875
Adjustments to reconcile net income (loss) to net cash provided by (used in) operating activities:      
Depreciation and amortization 7,491 5,794 4,298
Amortization of premium (accretion of discount) on marketable securities 3,160 (272) (4,321)
Stock-based compensation 36,975 31,619 31,851
Abandonment of capitalized intangible assets 934 535 221
Loss on disposal of assets 462 4 8
Gain on sale of marketable securities available-for-sale   (153)  
Equity received in connection with license agreement (22,379) (26,660)  
Equity received in connection with sale of financial assets (3,300)    
Cash redemption of equity received in connection with license agreement   5,390  
Change in fair value of equity securities (20,988) (105)  
Equity securities impairment 762    
Changes in operating assets and liabilities:      
Accounts receivable (54,941) 10,131 (11,321)
Interest receivable from marketable debt securities 655 1,190 (387)
Prepaid expenses and other current assets (13,151) (4,170) 3,828
Income tax receivable   895 704
Contract asset and deposits 12,059 (12,401)  
Accounts payable 5,047 (1,235) 6,392
Accrued expenses 1,840 8,608 (667)
Deferred rent     (1,513)
Lease liabilities and right of use (ROU) assets 1,211 (325) 1,354
Deferred revenue (55,321) 45,484 7,052
Net cash provided by (used in) operating activities (16,853) (5,004) 64,374
Cash flows from investing activities      
Proceeds from sale and maturities of marketable securities available-for-sale 485,152 757,617 456,923
Proceeds from sale of property and equipment 19 1  
Purchase of marketable securities (509,597) (643,658) (496,855)
Purchase of intangible assets (2,682) (3,229) (3,685)
Purchase of property and equipment (13,299) (10,539) (7,353)
Purchase of convertible note (5,000)    
Exercise of stock options (842)    
Net cash provided by (used in) investing activities (46,249) 100,192 (50,970)
Cash flows from financing activities      
Proceeds from issuance of common stock upon exercise of stock awards 12,281 16,617 9,269
Proceeds from issuance of common stock from Employee Stock Purchase Plan 1,837 1,427 1,393
Proceeds from issuance of common stock 28,920    
Net cash provided by financing activities 43,038 18,044 10,662
Net (decrease) increase in cash and cash equivalents (20,064) 113,232 24,066
Cash and cash equivalents, beginning of year 163,544 50,312 26,246
Cash and cash equivalents, end of year 143,480 163,544 50,312
Cash paid for:      
Interest 14 15 11
Taxes     400
Supplemental disclosures of non-cash investing activities      
Unrealized loss on marketable securities $ (1,584) $ (1,087) $ 2,132