Investing activities during 2021 provided cash of $120.4 million, due to $660.1 million and $266.5 million in proceeds from maturities and sales of marketable securities, respectively, partially offset by $661.8 million used for purchases of marketable securities, $132.5 million used for purchases of property, plant and equipment, and $12.0 million used for an investment in MachineMetrics, Inc. (“MachineMetrics”).
Financing activities during 2021 used cash of $1,008.6 million, due to $600.0 million used for the repurchase of 4.8 million shares of common stock at an average price of $125.74 per share, $343.0 million used for the payments of convertible debt principal, $66.0 million used for dividend payments, and $32.3 million used for payments related to net settlement of employee stock compensation awards, partially offset by $32.7 million from the issuance of common stock under employee stock purchase and stock option plans.
In January 2022, May 2022, August 2022 and November 2022, our Board of Directors declared a quarterly cash dividend of $0.11 per share. Total dividend payments in 2022 were $69.7 million.
In January 2021, May 2021, August 2021 and November 2021, our Board of Directors declared a quarterly cash dividend of $0.10 per share. Total dividend payments in 2021 were $66.0 million.
In January 2021, our Board of Directors approved a repurchase program for up to $2.0 billion of common stock. In 2022, we repurchased 7.3 million shares of common stock for $752.1 million at an average price of $103.69 per share. In 2021, we repurchased 4.8 million shares of common stock for $600.0 million at an average price of $125.74 per share. The cumulative repurchases as of December 31, 2022, under this repurchase program were 12.0 million shares of common stock for $1,352.1 million at an average price per share of $112.44.
In January 2023, our Board of Directors cancelled the 2021 repurchase program and approved a new repurchase program for up to $2.0 billion of common stock. We intend to repurchase up to $500.0 million of common stock in 2023 subject to market conditions.
While we declared a quarterly cash dividend and authorized a share repurchase program, we may reduce or eliminate the cash dividend or share repurchase program in the future. Future cash dividends and stock repurchases are subject to the discretion of our Board of Directors, which will consider, among other things, our earnings, capital requirements and financial condition.
On May 1, 2020, we entered into a credit agreement providing a three-year, senior secured revolving credit facility of $400 million. On December 10, 2021, the credit agreement was amended to extend the senior secured revolving credit facility to December 10, 2026. On October 5, 2022, the credit agreement was amended to increase the amount of the credit facility to $750.0 million from $400.0 million. As of February 22, 2023, we have not borrowed any funds under the credit facility.
We expect operations to continue to be the primary source of cash to operate the business and meet material cash commitments, including any payments of convertible debt principal, our stock repurchase program, our quarterly dividends, our office lease obligations, contractual obligations related to inventory purchases and the construction of new facilities. We believe our cash, cash equivalents and marketable securities balance will be sufficient to pay our quarterly dividend and meet our working capital and expenditure needs for at least the next twelve months. Inflation has not had a significant long-term impact on earnings. At this time, the COVID-19 pandemic has not had an impact on our liquidity, but there is no assurance that continued impacts resulting from the pandemic will not have an adverse effect in the future.
At December 31, 2022, our future contractual obligations were related to debt, leases, retirement plan liabilities, deferred tax benefits, and purchase obligations. See Note J. “Debt”, Note I. “Leases”, Note P. “Retirement Plans”, and Note S. “Income Taxes” of Notes to Consolidated Financial Statements in this Annual Report for information about those obligations, which Notes are incorporated by reference into this section. Our purchase obligations were approximately $654.8 million, with $570.3 million expected to be paid within twelve months.
40