At June 30, 2020, we had the ability to borrow a total of $799.0 million from the FHLB including an available line of credit with the FHLB of $50.0 million. At June 30, 2020, we also had available unsecured credit lines with additional banks for $100.0 million. Outstanding borrowings at June 30, 2020 with the FHLB totaled $329.0 million, and there were no amounts outstanding with the aforementioned additional banks. Subsequent to June 30, 2020, we reduced the loans pledged as collateral on FHLB borrowings, thereby reducing our ability to borrow from the FHLB to $459.0 million. This reduction in collateral reflects the results of the Internal Review.
We have no material commitments or demands that are likely to affect our liquidity other than as set forth below. In the event loan demand were to increase faster than expected, or any unforeseen demand or commitment were to occur, we could access our borrowing capacity with the FHLB or our bank lines of credit, or obtain additional funds through brokered deposits.
To avoid the uncertainty of audits and inquiries by third-party investors in Advantage Loan Program, beginning at the end of the second quarter of 2020, the Company commenced making offers to each of those investors to repurchase 100% of sold Advantage Loan Program loans. In July 2020, three third-party investors accepted the above mentioned offer, from which the Company repurchased three pools of Advantage Loan Program loans sold with a total outstanding unpaid principal balance of $19,521. Should additional secondary market investors accept our offers to repurchase Advantage Loan Program loans with respect to a substantial portion of such outstanding loans, the cash required to fund these repurchases will substantially reduce our liquidity. At June 30, 2020, the unpaid principal balance of the sold Advantage Loan Program portfolio totaled $540.0 million.
At June 30, 2020, we had $293.5 million in loan commitments outstanding, and $24 thousand in standby letters of credit. At December 31, 2019, we had $297.5 million in loan commitments outstanding, and $24 thousand in standby letters of credit.
Time deposits due within one year of June 30, 2020 were $1.11 billion, or 38% of total deposits. Total time deposits at June 30, 2020 were $1.58 billion, or 55%, of total deposits. Time deposits due within one year of December 31, 2019 were $855.3 million, or 34% of total deposits. Total time deposits at December 31, 2019 were $1.15 billion, or 46%, of total deposits.
Our primary investing activities are the origination of loans and to a lesser extent, the purchase of investment securities. During the three months ended June 30, 2020 and 2019, we originated $83.2 million and $356.5 million of loans, respectively, and purchased $171.0 million and $30.9 million of investment securities, respectively. During the six months ended June 30, 2020 and 2019, we originated $268.6 million and $661.4 million of loans, respectively, and purchased $246.7 million and $77.5 million of investment securities, respectively. Cash flows provided by loan payoffs totaled $136.4 million and $199.9 million during the three months ended June 30, 2020 and 2019, respectively, and $311.4 million and $359.9 million during the six months ended June 30, 2020 and 2019, respectively.
Financing activities consist primarily of activity in deposit accounts. We experienced a net increase in total deposits of $396.6 million for the six months ended June 30, 2020 compared to a net increase of $94.0 million for the six months ended June 30, 2019. We generate deposits from local businesses and individuals through customer referrals and other relationships and through our retail presence. We utilize borrowings and brokered deposits to supplement funding needs and manage our liquidity position.
On a parent company-only basis, the Company's the primary source of funding is dividends received from the Bank. Banking regulations limit the dividends that may be paid by the Bank. Approval by regulatory authorities is required if the total capital distributions for the applicable calendar year exceed the sum of the Bank's net income for that year to date plus the Bank's retained net income for the preceding two years, or the Bank would not be at least adequately capitalized following the distribution. At June 30, 2020, the Bank had capacity to pay approximately $84.4 million of dividends to the Company under regulatory guidelines without prior regulatory approval. The Company also has the legal ability to access the debt and equity capital markets for additional funding.
The Company's primary funding needs on a parent company-only basis consist of dividends to shareholders, interest expense on subordinated debt and stock repurchases. At June 30, 2020, the Company had $65.0 million in principal