restrictions to our lending operations, the result of which was that we did not generate interest income to offset these additional interest expense. See “Review of First Half of 2020 and Outlook for Balance of Year”.
Professional fees increased approximately $88,000 due to increases in computer and technology services, director fees and audit fees, while compensation expense decreased approximately $125,000, primarily due to the resignation of Jeffrey Villano and Donna Genovese, our co-chief executive officer and director of marketing, respectively, in November 2019. The 2019 period included expenses incurred in connection with the termination of our line of credit of approximately $780,000 and no such costs occurred in the 2020 period. In addition, we recorded an impairment loss of $495,000 during the June 2020 quarter on our real estate owned.
Comprehensive income
For the six months ended June 30, 2020, we reported an unrealized gain on investment securities of approximately $86,000 reflecting the increase in the market value of such securities since December 31, 2019. There was no comparable item during the six months ended June 30, 2019.
Net Income
Net income for the six months ended June 30, 2020 was approximately $4.5 million, or $0.20 per share, compared to $3.2 million, or $0.19 per share for the six months ended June 30, 2019, despite the increase in weighted average number of shares outstanding -- 22,117,301 for the 2020 period compared to 17,144,104 for the 2019 period.
Liquidity and Capital Resources
At June 30, 2020, cash and investments totaled approximately $20.6 million compared to $34.8 million at December 31, 2019. This decrease was offset by a corresponding increase in mortgages receivable of $17.1 million. Overall, total assets increased by approximately $2.2 million compared to year end and total liabilities increased approximately $350,000. Shareholders’ equity increased by approximately $1.9 million due to a decrease in our accumulated comprehensive loss of approximately $86,000 and the difference between our net income of approximately $4.5 million and the dividends paid of approximately $2.7 million offset by costs associated with our S-3 Registration Statement, approximately $58,000, which we filed in January 2020. At June 30, 2020, we had approximately $8.2 million of future funding commitments under existing construction loans.
Net cash provided by operating activities for the six months ended June 30, 2020 was approximately $4.0 million compared to approximately $3.7 million for same 2019 period. For the 2020 period net cash from operations consisted primarily of net income of $4.5 million, an impairment loss of $495,000, depreciation and amortization of deferred financing cost of $267,000, and an increase in advances from borrowers of $164,000, offset by a realized gain on investments of approximately $437,000, increases in interest and fees receivable of $186,000, amounts due from borrowers of $598,000 and prepaid expenses of $48,000, and a decrease in deferred income of $347,000. For the 2019 period net cash from operating activities consisted primarily of net income of $3.2 million, depreciation and amortization of deferred financing cost of $120,000, costs associated with the termination of the Webster Facility of $439,00, and a $780,000 decrease in due from borrowers, offset by a $450,000 increase in interest and fees receivable, a $177,000 increase in deposits on property and a $177,000 decrease in due to note purchaser.
Net cash used for investing activities for the six months ended June 30, 2020 was approximately $15.7 million compared to approximately $7.7 million for the comparable 2019 period. For the 2020 period, net cash used for investing activities consisted primarily of principal disbursements for mortgages receivable of approximately $42.3 million, the purchase of investments of $17.4 million and the acquisition of and improvements to real estate owned of $1.0, offset by proceeds from the sale of investments of approximately $17.9 million, proceeds from the sale of real estate owned of $1.8 million and mortgage loan pay-offs of approximately $25.4 million. For the 2019 period, net cash used for investing activities consisted primarily of principal disbursements for mortgages receivable of approximately $28.5 million, acquisitions and improvements of real estate owned of approximately $343,000 and purchases of property and equipment of $165,000, offset by mortgage loan pay-offs of approximately $21.1 million and proceeds from sale of real estate owned of approximately $265,000.
Net cash used in financing activities for the six months ended June 30, 2020 was approximately $2.5 million compared to approximately $6.9 million of cash provided by financing activities for the comparable 2019 period. Net cash used for financing