attributable primarily to a change in the amount of foreign currency gains and losses, from a gain of $0.6 million in the three months ended June 30, 2020 to a gain of $0.4 million in the three months ended June 30, 2021, along with a decrease in interest income recognized in the three months ended June 30, 2021 compared to the three months ended June 30, 2020.
Other income (expense), net decreased by $0.1 million, or 20%, for the six months ended June 30, 2021 compared to the six months ended June 30, 2020. The decrease was attributable primarily to a change in the amount of foreign currency gains and losses, from a loss of $0.8 million in the six months ended June 30, 2020 compared to a loss of $0.5 million in the six months ended June 30, 2021. This was partially offset by a decrease in interest income recognized in the six months ended June 30, 2021 compared to the six months ended June 30, 2020.
Benefit for Income Taxes
| | | | | | | | | | | | | | | | | | | | | | | | |
| | Three Months Ended | | | | | | | | Six Months Ended | | | | | | |
| | June 30, | | Change | | June 30, | | Change |
| | 2021 | | 2020 | | $ | | % | | 2021 | | 2020 | | $ | | % |
|
| | (dollars in thousands) | |
Benefit for income taxes | | $ | 4,047 | | $ | 2,932 | | $ | 1,115 | | 38 | % | | $ | 7,314 | | $ | 4,876 | | $ | 2,438 | | 50 | % |
Our benefit for income taxes was $4.0 million and $2.9 million for the three months ended June 30, 2021 and 2020, respectively. For the six months ended June 30, 2021 and 2020, our benefit for income taxes was $7.3 million and $4.9 million, respectively. The increase in the tax benefit for the three and six months ended June 30, 2021 as compared to the three and six months ended June 30, 2020 primarily relates to a larger expected pre-tax loss in 2021 as compared to 2020, the release of a foreign valuation allowance, and an increase in R&D and other credits recorded in the three and six months ended June 30, 2021. The increase in tax benefit for the six months ended June 30, 2021 as compared to the six months ended June 30, 2020 was partially offset by a valuation allowance recorded against our U.S. deferred tax assets during the first quarter of 2021.
Liquidity and Capital Resources
General
As of June 30, 2021, our principal sources of liquidity were cash and cash equivalents totaling $104.3 million, which were held for working capital purposes, and borrowing availability under our Revolving Credit Facility as described below. As of June 30, 2021, our cash equivalents were comprised of money market funds. During the six months ended June 30, 2021 and 2020, our positive cash flows from operations have enabled us to make continued investments in supporting the growth of our business. We expect that our operating cash flows, in addition to our cash and cash equivalents, will enable us to continue to make such investments in the future.
We have financed our operations primarily through cash received from operations and proceeds from our debt and equity financings. On March 30, 2020, we drew down on the remaining $97.8 million available for borrowing under our Revolving Credit Facility (described further below). Given the uncertainty in the global economy as result of the COVID-19 pandemic and out of an abundance of caution, we elected to draw down the remaining available balance to further strengthen our cash position and maintain flexibility. In February 2021, we repaid $110.0 million of the balance drawn on our Revolving Credit Facility, and in June 2021, we drew down an additional $80.0 million for the acquisition of SecuredTouch, Inc., and for general working capital purposes. As of June 30, 2021, there was $120.0 million outstanding under our Revolving Credit Facility. We believe our existing cash and cash equivalents, our Revolving Credit Facility and cash provided by sales of our solutions and services will be sufficient to meet our working capital and capital expenditure needs for at least the next 12 months. Our future capital requirements will depend on several factors, including but not limited to our obligation to repay any amounts outstanding under our Credit Agreement, our subscription growth rate, subscription renewal activity, billing frequency, the timing and extent of spending to support development efforts, the expansion of sales and marketing activities, the introduction of new and enhanced solutions, the continuing market adoption of our platform, and the continuing effects of the COVID-19 pandemic, including potential reductions in revenue and delays in payments from our customers and partners. In the future, we may