During the year ended December 31, 2018, operating activities provided approximately $11.6 million of cash and cash equivalents, primarily resulting from a net loss of $33.3 million, offset by $36.4 million of non-cash operating expenses inclusive of depreciation and amortization, amortization of debt issuance cost, equity-based compensation costs, deferred income taxes, and a $0.1 million non-cash loss on retirement of assets. Changes in our operating assets and liabilities provided cash and cash equivalents of approximately $8.3 million.
Investing Activities
During the year ended December 31, 2020, investing activities used approximately $8.6 million of cash, primarily for investing in capital expenditures and capitalized software development to support our growth.
During the year ended December 31, 2019, investing activities used approximately $9.5 million of cash, primarily for investing in capital expenditures and capitalized software development to support our growth.
During the year ended December 31, 2018, investing activities used approximately $73.9 million of cash, primarily for business acquisitions of $62.4 million, and investing in capital expenditures and capitalized software development to support our growth.
Financing Activities
During the year ended December 31, 2020, financing activities provided approximately $208.2 million of cash, primarily attributable to proceeds from issuance of common stock in connection with our IPO, partially offset by payments on long-term debt.
During the year ended December 31, 2019, financing activities used approximately $8.5 million of cash, primarily attributable to payments on long-term debt, capital lease obligations, and our revolving credit facility, and unit repurchases, partially offset by proceeds from capital contributions.
During the year ended December 31, 2018, financing activities provided approximately $57.3 million of cash, consisting of proceeds from borrowings on long-term debt and our revolving credit facility, and capital contributions, partially offset by payments on contingent consideration obligations, long-term debt, capital lease obligations, and our revolving credit facility, units repurchases, and debt issuance costs.
Funding Requirements
We believe that our existing cash and cash equivalents will be sufficient to fund our operations and capital expenditure requirements for the foreseeable future. Our future capital requirements will depend on many factors, including funding for potential acquisitions, investments, and other growth and strategic opportunities that might require use of existing cash, borrowings under our revolving credit facility, or additional long-term financing. We may also use existing cash and cash flows from operations to pay down long-term debt from time to time.
While we believe we have sufficient liquidity to fund our operations for the foreseeable future, our sources of liquidity could be affected by factors described under “Risk Factors” elsewhere in this filing.
Indebtedness
Credit Facilities
Loan Agreement
During the year ended December 31, 2020, we were party to a loan agreement, dated July 6, 2017, (the “Loan Agreement”) providing for a $100.0 million senior unsecured term loan. The Loan Agreement was set to mature on August 14, 2025. Borrowings under the Loan Agreement bore interest at a rate per annum equal to 8.25% payable semi-annually on January 15th and July 15th and on the final maturity date. During the year ended December 31, 2020, we