non-cash activities (depreciation and amortization, stock-based compensation expense, provision for losses on accounts receivable, losses from unconsolidated entities, net gains or losses on Limoneira shares, deferred taxes, loss on disposal of property, plant and equipment, loss on the reserve for FreshRealm, SFFI, and gain on the sale of the Temecula packinghouse) of $4.3 million and a net increase in the components of our working capital of approximately $7.0 million.
β
Increases in operating cash flows caused by working capital changes include an increase in payable to growers of $18.7 million, a net increase in accounts payable, accrued expenses and other liabilities of $14.5 million, a decrease in income taxes receivable of $4.0 million, and a decrease in prepaid expenses and other current assets of $1.4 million, partially offset by, an increase in accounts receivable of $16.1 million, an increase in other assets of $6.1 million, an increase in inventory of $5.7 million, and an increase in advances to suppliers of $3.6 million.
β
The increase in payable to growers is mostly due to increased volumes and sales prices for California and Mexican avocados in the month of July 2021 compared to October 2020. The increase in accounts payable, accrued expenses and other liabilities is primarily related to an $11 million accrual related to the 2013 Mexican Tax Assessment (See Note 7) and to an increase in payables related to an increase in the volume of California and Mexican avocados. The decrease in income taxes receivable is due to the timing of estimated payments made during the nine months ended July 31, 2021. The increase in our accounts receivable, as of July 31, 2021, when compared to October 31, 2020, is primarily due an increase in sales in July 2021 compared to October 2020. The increase in other assets is primarily related to the increase in IVA receivable in fiscal 2021. The increase in our inventory, as of July 31, 2021 when compared to October 31, 2020, is primarily due to higher inventory of California and Mexican Avocados. The increase in advances to suppliers is mainly due to advances to our tomato growers in the first nine months of fiscal 2021.
β
Cash used in investing activities was $8.5 million for the nine months ended July 31, 2021, which primarily related to the purchases of property, plant and equipment of $9.6 million, a $3.5 million bridge loan to Agricola Belher and infrastructure advances to Don Memo for $1.3 million, partially offset by, $6.0 million received from FreshRealm related to the separation agreement.
β
Cash used in financing activities was $6.6 million for the nine months ended July 31, 2021, which related principally to the payment of a $20.3 million dividend, payments on long-term obligations of $1.2 million and the payment of minimum withholding taxes on net share settlement of equity awards of $0.7 million, partially offset by, net proceeds on our credit facilities totaling $15.5 million
β
Our principal sources of liquidity are our existing cash balances, cash generated from operations, amounts available for borrowing under our existing Credit Facility, and our investment in Limoneira shares. Restricted cash, cash and cash equivalents as of July 31, 2021 and October 31, 2020 totaled $1.3 million and $4.1 million. Our working capital at July 31, 2021 was $57.6 million, compared to $29.6 million at October 31, 2020.
β
We believe that cash flows from operations, the available Credit Facility, and other sources will be sufficient to satisfy our future capital expenditures, grower recruitment efforts, working capital and other financing requirements for at least the next twelve months. We will continue to pursue grower recruitment opportunities and expand relationships with retail and/or foodservice customers to fuel growth in each of our business segments. We have a revolving credit facility with Bank of America as administrative agent and Farm Credit West as joint lead arranger. Under the terms of this agreement, we may draw on funds for both working capital and long-term productive asset purchases. Total credit available under this agreement is $100Β million and it expires in January 2026. See Note 13 to the consolidated condensed financial statements included in this Quarterly Report for more information. Upon notice to Bank of America, we may from time to time, request an increase in the Credit Facility by an amount not exceeding $50 million. For our Credit Facility, the weighted-average interest rate was 2.9% and 1.9% at July 31, 2021 and October 31, 2020. Under the Credit Facility, we had $36.0 million and $20.6 million outstanding as July 31, 2021 and October 31, 2020. As of July 31, 2021, we have $64 million of our line of credit available.
The Credit Facility agreement contains customary affirmative and negative covenants for agreements of this type, including the following financial covenants applicable to the Company and its subsidiaries on a consolidated basis: (a)Β a quarterly consolidated leverage ratio of not more than 2.50 to 1.00 and (b)Β a quarterly consolidated fixed charge coverage