30, 2022 and 2023, respectively. The reduction in research and development spending in the quarter ended June 30, 2023 reflects the impact of cost reduction measures implemented in November 2022.
Selling, General and Administrative Expenses. Selling, general and administrative expenses increased by 11.8% from $2.7 million in the three months ended June 30, 2022 to $3.0 million in the three months ended June 30, 2023. Selling, general and administrative expenses included a decrease in the value of contingent consideration of $45,000 in the three months ended June 30, 2023 compared to $417,000 in the three months ended June 30, 2022. The increase in expenses also included an increase of $140,000 stock-based compensation, partially offset by decreases of $136,000 in payroll-related expenses and $52,000 in independent sales representatives’ commissions. Selling, general and administrative expenses included stock-based compensation expense of $227,000 and $367,000 for the three months ended June 30, 2022 and 2023, respectively.
Interest Income and Other Expense, Net. Interest and other income, net increased by $54,000 from a net $26,000 in the three months ended June 30, 2022 to $80,000 in the three months ended June 30, 2023. Interest income increased by $121,000 primarily due to higher interest rates received on our cash and short-term investments. Foreign exchange gains were $11,000 for the three months ended June 30, 2022 compared to a loss of $63,000 for the three months June 30, 2023. The exchange gain and loss in were related to our Taiwan branch operations and our operations in Israel.
Provision for Income Taxes. The provision for income taxes decreased from $60,000 in the three months ended June 30, 2022 to $51,000 in the three months ended June 30, 2023.
Net Loss. Net loss was $4.0 million in the three months ended June 30, 2022 compared $5.1 million in the three months ended June 30, 2023. These fluctuations were primarily due to the changes in net revenues, gross profit and operating expenses discussed above.
Liquidity and Capital Resources
As of June 30, 2023, our principal sources of liquidity were cash, cash equivalents and short-term investments of $27.7 million compared to $30.6 million as of March 31, 2023.
Net cash used in operating activities was $3.7 million for the three months ended June 30, 2023 compared to $5.0 million for the three months ended June 30, 2022. The primary uses of cash in the three months ended June 30, 2023 were the net loss of $5.1 million, and reductions in accrued expenses and other liabilities of $284,000 and accounts payable of $270,000. The reduction in accrued expenses and other liabilities was primarily related to the payment of fiscal 2023 year-end accruals for incentive compensation. The uses of cash in the three months ended June 30, 2023 were less than the net loss due to non-cash items including stock-based compensation of $820,000 and depreciation and amortization expenses of $276,000. The primary sources of cash in the three months ended June 30, 2023 were decreases in inventories of $452,000 and accounts receivable of $399,000.
The primary uses of cash in the three months ended June 30, 2022 were the net loss of $4.0 million and a reduction in accrued expenses and other liabilities of $1.9 million. The reduction in accrued expenses and other liabilities was primarily related to the payment of fiscal 2021 year-end accruals for incentive compensation. The primary sources of cash in the three months ended June 30, 2022 were non-cash items including stock-based compensation of $638,000, depreciation and amortization expenses of $256,000 and a decrease in accounts receivable of $235,000.
Net cash provided by investing activities was $1.9 million in the three months ended June 30, 2023 compared to $1.4 million in the three months ended June 30, 2022. Investment activities in the three months ended June 30, 2023 primarily consisted of the maturity of certificates of deposit and agency bonds of $2.5 million, partially offset by the purchase property and equipment of $607,000. Investment activities in the three months ended June 30, 2022 primarily consisted of the maturity of certificates of deposit and agency bonds of $1.5 million partially offset by the purchase of property and equipment of $106,000.
Net cash provided by financing activities in the three months ended June 30, 2023 consisted of the net proceeds from the sale of common stock pursuant to our employee stock plans of $1.5 million. Net cash provided by