Consolidated Statements of Cash Flows For the Years Ended December 31, 2020, 2019 and 2018 Core Logic, Inc. (in thousands) 2020 2019 2018 Cash flows from operating activities: Net income $ 301,355  $ 49,380  $ 121,864  Less: Income from discontinued operations, net of tax 34,363  15,610  47,854  Less: Gain from sale of discontinued operations, net of tax 2,742  —  —  Net income from continuing operations 264,250  33,770  74,010  Adjustments to reconcile net income from continuing operations to net cash provided by operating activities: Depreciation and amortization 174,445  175,100  181,142  Impairment loss 2,309  47,834  7,687  Amortization of debt issuance costs 4,935  5,077  5,434  Amortization of operating lease assets 14,855  15,402  —  Provision for bad debts and claim losses 22,711  15,341  13,401  Share-based compensation 45,060  35,171  36,453  Equity in earnings of investee, net of taxes (1,859) (556) (1,493) Loss on early extinguishment of debt —  1,892  —  Deferred income tax 23,639  2,069  22,006  Impairment loss on investment in affiliates —  1,511  —  Tax indemnification release —  13,394  —  Gain on investments and other, net (42,153) (2,329) (18,740) Change in operating assets and liabilities, net of acquisitions: Accounts receivable (55,829) (33,491) 17,885  Prepaid expenses and other assets (2,570) (7,300) (1,138) Accounts payable and other accrued expenses (21,095) 1,283  112  Due to/from affiliate —  —  649  Contract liabilities 144,548  50,380  (15,978) Income taxes (32,397) 22,210  (1,133) Dividends received from investments in affiliates 109  1,987  775  Other assets and other liabilities (49,780) (31,413) (15,230) Net cash provided by operating activities - continuing operations 491,178  347,332  305,842  Net cash provided by operating activities - discontinued operations 44,594  16,884  49,272  Total cash provided by operating activities $ 535,772  $ 364,216  $ 355,114  Cash flows from investing activities: Purchases of property and equipment $ (57,668) $ (79,265) $ (53,551) Purchases of capitalized data and other intangible assets (41,442) (35,481) (30,601) Cash paid for acquisitions, net of cash acquired (12,045) (13,283) (219,588) Cash received from sale of business-lines —  4,109  3,178  Cash received from sale of discontinued operations 7,506  —  —  Purchases of investments (1,315) (658) —  Proceeds from investments and other 51,358  5,594  4,923  Net cash used in investing activities - continuing operations (53,606) (118,984) (295,639) Net cash used in investing activities - discontinued operations (12,113) (16,845) (13,228) Total cash used in investing activities $ (65,719) $ (135,829) $ (308,867) Cash flows from financing activities: Proceeds from long-term debt $ 300,000  $ 1,770,000  $ 191,291  54