expanding into digital media. In addition, we had an increase in payroll related expenses of $1.0 million, as we continue to strengthen our commercial organization and have hired a senior VP of Commercial Operations, as well as additional sales personnel. We also had an increase in stock-based compensation expense of $0.3 million. The Company had an increase of travel expenses of $0.1 million, primarily due to relaxing of COVID-19 restrictions.
General and Administrative Expense. General and administrative expenses for the six months ended June 30, 2022, increased by $2.6 million, or 36.8%, to $9.6 million, compared to $7.0 million for the same period in 2021. The increase is primarily due to the Company recording litigation losses during the six months ended June 30, 2022 of $2.0 million, an increase of $1.4 million in stock-based compensation expense, an increase in payroll of $0.9 million, as the Company is making strategic organizational changes, and an increase of $0.5 million in rent and facilities and insurance, directly attributable to the merger with Obalon, and $0.2 million in legal expenses. This was offset by a decrease in audit, consulting and other professional fees of $2.2 million, as we had significant related costs during the second quarter of 2021 due to the merger with Obalon. We also had a decrease in bad debt expense of $0.2 million, as the Company has focused on collections which has resulted in better collections of many past due accounts.
Research and Development Expense. Research and development expenses for the six months ended June 30, 2022, increased by $0.8 million, or 123.7%, to $1.5 million, compared to $0.7 million for the same period in 2021. The increase is primarily due to an increase of $0.4 million in clinical trials and related consulting fees of $0.4 million and an increase of $0.4 million in payroll related expenses including an increase in stock-based compensation expense.
Loss on Disposal of Assets, net. During the six months ended June 30, 2022, the Company disposed of $0.4 million of assets that were acquired from the merger with Obalon.
Net Interest Expense. Net interest income for the six months ended June 30, 2022, was minimal, compared to an expense of $0.8 million in 2021, which related to the debt that was extinguished during the second quarter of 2021.
(Gain) Loss on Foreign Currency. The Company had a minimal gain on foreign currency during the six months ended June 30, 2022 as the gains recognized during the first quarter were offset by loss on foreign currency during the second quarter of 2022.
Income Tax (Benefit) Expense. The Company had an income tax benefit of $0.1 million for the six months ended June 30, 2022, due to a reduction in the valuation allowance related to an impairment of indefinite lived assets, offset by income tax expense related to projected income in the Netherlands and Australia.
Liquidity and Capital Resources
The accompanying condensed consolidated financial statements have been prepared assuming the Company will continue as a going concern. The Company currently does not generate revenue sufficient to offset operating costs and anticipates such shortfalls to continue primarily due to the unpredictability of new variants of COVID-19, which may result in a slow-down of elective surgeries and restrictions in some locations. As of June 30, 2022, the Company had net working capital of approximately $10.3 million, primarily due to cash and cash equivalents and restricted cash of $11.5 million. The Company’s principal source of liquidity as of June 30, 2022, consisted of approximately $11.5 million of cash and cash equivalents and restricted cash, and $2.4 million of accounts receivable. Based on its available cash resources, the Company may not have sufficient cash on hand to fund its current operations for more than twelve months from the date of filing this Quarterly Report on Form 10-Q. This condition raises substantial doubt about the Company’s ability to continue as a going concern. The Company believes in the viability of its business strategy and in its ability to raise additional funds, however, there can be no assurance to that effect.
The Company is also evaluating further funding options, including seeking additional equity or debt financing to support the expansion of the Lap-Band system, reshapecare, and the continued development of the ReShape Vest and the ReShape Diabetes Bloc-Stim Neuromodulation; and the re-introduction of the Obalon Balloon System and other strategic market opportunities.